Make status buffer current while committing.
This commit is contained in:
parent
dc12f07f65
commit
1e68bdaa90
1 changed files with 4 additions and 3 deletions
7
magit.el
7
magit.el
|
@ -1585,9 +1585,10 @@ Please see the manual for a complete description of Magit.
|
|||
(write-region (point-min) (point-max) ".git/magit-log")
|
||||
(write-region "(Empty description)" nil ".git/magit-log"))
|
||||
(erase-buffer)
|
||||
(apply #'magit-run "git" "commit" "-F" ".git/magit-log"
|
||||
(append (if (not (magit-anything-staged-p)) '("--all") '())
|
||||
(if amend '("--amend") '())))
|
||||
(with-current-buffer (magit-find-buffer 'status default-directory)
|
||||
(apply #'magit-run "git" "commit" "-F" ".git/magit-log"
|
||||
(append (if (not (magit-anything-staged-p)) '("--all") '())
|
||||
(if amend '("--amend") '()))))
|
||||
(bury-buffer)
|
||||
(when magit-pre-log-edit-window-configuration
|
||||
(set-window-configuration magit-pre-log-edit-window-configuration)
|
||||
|
|
Loading…
Reference in a new issue