summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b490a99)
raw | patch | inline | side by side (parent: b490a99)
author | Paul Mackerras <paulus@samba.org> | |
Wed, 22 Jun 2005 08:15:15 +0000 (18:15 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Wed, 22 Jun 2005 08:15:15 +0000 (18:15 +1000) |
This involves adding indentation when we read a commit with
git-cat-file and trimming the whitespace from the headline.
git-cat-file and trimming the whitespace from the headline.
gitk | patch | blob | history |
index 922701ca755e40194754fdad1f2a14b4d50f2c29..1606c38d096134c02ca95703f352a197b2aa4d4a 100755 (executable)
--- a/gitk
+++ b/gitk
}
} 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
}
}