From: Paul Mackerras Date: Wed, 22 Jun 2005 08:15:15 +0000 (+1000) Subject: Account for indentation of the checkin comments by git-rev-list X-Git-Tag: v0.99~60^2~9 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=806ce0971895249d1ebb641b77f1fa870d86d73e;p=git.git 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. --- diff --git a/gitk b/gitk index 922701ca..1606c38d 100755 --- a/gitk +++ b/gitk @@ -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 } }