diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-04 13:34:00 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-04 13:34:00 +0100 |
commit | 053c2e952af50af09cd382b78cac637b7075b74e (patch) | |
tree | 1ef9cf1d1109f7808758b324355a70a94a8d0b74 | |
parent | 240c611c21752ee5e18a5fa946870eeb4c341527 (diff) | |
download | gitsum-053c2e952af50af09cd382b78cac637b7075b74e.tar.gz gitsum-053c2e952af50af09cd382b78cac637b7075b74e.tar.xz gitsum-053c2e952af50af09cd382b78cac637b7075b74e.zip |
Don't display empty comment line after diffstat
# gitsum.el | 3 +++ # 1 files changed, 3 insertions(+), 0 deletions(-)
-rw-r--r-- | gitsum.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitsum.el b/gitsum.el index 04e81d5..93038a7 100644 --- a/gitsum.el +++ b/gitsum.el @@ -62,6 +62,9 @@ A numeric argument serves as a repeat count." (insert "\n") (while (re-search-forward "^" nil t) (replace-match "# " nil nil)) + (forward-line 0) + (forward-char -1) + (delete-region (point) (point-max)) (goto-char (point-min))) (log-edit 'gitsum-do-commit nil nil buffer))) |