gitk: Split out diff part in $commitinfo
commitb449eb2cb34fbdcb5cab7101a527985013818c9b
authorThomas Rast <trast@inf.ethz.ch>
Sat, 16 Nov 2013 17:37:42 +0000 (16 18:37 +0100)
committerPaul Mackerras <paulus@samba.org>
Sun, 1 Dec 2013 22:24:20 +0000 (2 09:24 +1100)
tree92b14d702b994b41bd3ef2b856a02feff0575b4a
parent5de460a2cfdd4acbadd41355a5b34dc69e93b89e
gitk: Split out diff part in $commitinfo

So far we just parsed everything after the headers into the "comment"
bit of $commitinfo, including notes and -- if you gave weird options
-- the diff.

Split out the diff, if any, into a separate field.  It's easy to
recognize, since it always starts with /^diff/ and is preceded by an
empty line.

We take care to snip away said empty line.  The display code already
properly spaces the end of the message from the first diff, and
leaving another empty line at the end looks ugly.

Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk