gitk: Show local uncommitted changes as a fake commit
commit219ea3a99b9d4253815bcd71fd78eb00665acdbb
authorPaul Mackerras <paulus@samba.org>
Thu, 7 Sep 2006 00:21:39 +0000 (7 10:21 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 23 Jun 2007 10:57:39 +0000 (23 20:57 +1000)
tree15a51aebd13d377062eb5acd74e7a0eb2e1cc950
parent322a8cc9b31217c883c42b9babbbdea7f522eeb7
gitk: Show local uncommitted changes as a fake commit

If there are local changes in the repository, i.e., git-diff-index HEAD
produces some output, then this optionally displays an extra row in
the graph as a child of the HEAD commit (but with a red circle to
indicate that it's not a real commit).  There is a checkbox in the
preferences window to control whether gitk does this or not.

Clicking on the extra row shows the diffs between the working directory
and the HEAD (using git diff-index -p).  The right-click menu on the
extra row allows the user to generate a patch containing the local diffs,
or to display the diffs between the working directory and any commit.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk