Skip to content

Commit

Permalink
gitk: Show local uncommitted changes as a fake commit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed Jun 23, 2007
1 parent 322a8cc commit 219ea3a
Showing 1 changed file with 284 additions and 53 deletions.
Loading

0 comments on commit 219ea3a

Please sign in to comment.