Skip to content

Commit

Permalink
Account for indentation of the checkin comments by git-rev-list
Browse files Browse the repository at this point in the history
This involves adding indentation when we read a commit with
git-cat-file and trimming the whitespace from the headline.
  • Loading branch information
Paul Mackerras committed Jun 22, 2005
1 parent b490a99 commit 806ce09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 806ce09

Please sign in to comment.