author | Paul Mackerras <paulus@samba.org> | |
Mon, 7 Sep 2009 00:08:21 +0000 (10:08 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Mon, 7 Sep 2009 00:08:21 +0000 (10:08 +1000) | ||
commit | 4a3da5d91a4768a8abe6a8c64f1c3a49125a5bcf | |
tree | a8cdb690277399249118b1d80d67440d8d7ed69e | tree | snapshot |
parent | 0cc08ff7ddaf4360966bdedf006af041cdf6f7d9 | commit | diff |
gitk: Show diff of commits at end of compare-commits output
When comparing a string of commits, when we find two non-merge commits
that differ, we now write the two commits to files and diff the files.
This pulls out the logic for creating a temporary directory from
external_diff into a separate procedure so that the new diffcommits
procedure can use it.
Because the diff command returns an exit status of 1 when the files
differ, and Tcl treats that as an error, this adds catch {} around the
close statements in getblobdiffline.
At present this only removes the temporary files when gitk exits. It
should remove them when the diff is done.
Signed-off-by: Paul Mackerras <paulus@samba.org>
When comparing a string of commits, when we find two non-merge commits
that differ, we now write the two commits to files and diff the files.
This pulls out the logic for creating a temporary directory from
external_diff into a separate procedure so that the new diffcommits
procedure can use it.
Because the diff command returns an exit status of 1 when the files
differ, and Tcl treats that as an error, this adds catch {} around the
close statements in getblobdiffline.
At present this only removes the temporary files when gitk exits. It
should remove them when the diff is done.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |