Don't add info to the edit log when a commit is successfully applied.
Previously, if a commit was successfully applied and committed, its information was still added to the edit log. This wasn't useful. Now the information is only added if the commit wasn't committed (e.g. with a) or if it was committed (with A) but the commit failed.
This commit is contained in:
parent
6e0de30947
commit
f0c05ea93d
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -3479,7 +3479,7 @@ With prefix argument, changes in staging area are kept.
|
|||
,@(if (not docommit) (list "--no-commit"))
|
||||
,commit)
|
||||
nil noerase)))
|
||||
(when (or (not docommit) success)
|
||||
(when (or (not docommit) (not success))
|
||||
(cond (revert
|
||||
(magit-log-edit-append
|
||||
(magit-format-commit commit "Reverting \"%s\"")))
|
||||
|
|
Loading…
Reference in a new issue