Commit 806ce097 authored by Paul Mackerras's avatar Paul Mackerras

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.
parent b490a991
......@@ -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
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment