diff options
author | Paul Mackerras <paulus@samba.org> | 2005-06-22 18:15:15 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-06-22 18:15:15 +1000 |
commit | 806ce0971895249d1ebb641b77f1fa870d86d73e (patch) | |
tree | ce9a2ea0adba5cd79802c93aff943358cbf1565d | |
parent | Use git-rev-list --header. (diff) | |
download | tgif-806ce0971895249d1ebb641b77f1fa870d86d73e.tar.xz |
Account for indentation of the checkin comments by git-rev-list
This involves adding indentation when we read a commit with
git-cat-file and trimming the whitespace from the headline.
-rwxr-xr-x | gitk | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -174,10 +174,15 @@ proc parsecommit {id contents listed} { } } else { if {$comment == {}} { - set headline $line + set headline [string trim $line] } else { append comment "\n" } + if {!$listed} { + # git-rev-list indents the comment by 4 spaces; + # if we got this via git-cat-file, add the indentation + append comment " " + } append comment $line } } |