Provide default message when buffer is empty.
This commit is contained in:
parent
dd1c47e09e
commit
2f9c95ae25
1 changed files with 3 additions and 1 deletions
|
@ -369,7 +369,9 @@
|
|||
|
||||
(defun gits-log-edit-commit ()
|
||||
(interactive)
|
||||
(write-region (point-min) (point-max) ".git/gits-log")
|
||||
(if (> (buffer-size) 0)
|
||||
(write-region (point-min) (point-max) ".git/gits-log")
|
||||
(write-region "(Empty description)" nil ".git/gits-log"))
|
||||
(erase-buffer)
|
||||
(gits-run "git-commit" "-F" ".git/gits-log")
|
||||
(bury-buffer)
|
||||
|
|
Loading…
Reference in a new issue