git-commit: show dirtiness including index.
authorJunio C Hamano <junkio@cox.net>
Sun, 12 Feb 2006 21:05:53 +0000 (13:05 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 12 Feb 2006 21:05:53 +0000 (13:05 -0800)
commitc5e09c1fbec5dc1c15bcfe21e1a600f9e4b4e419
tree20bcd5435d57b54b4c18567a17ac53191b4f77cf
parent024701f1d88d79f3777bf45c82437f40a80b6eaa
git-commit: show dirtiness including index.

Earlier, when we switched a branch we used diff-files to show
paths that are dirty in the working tree.  But we allow switching
branches with updated index ("read-tree -m -u $old $new" works that
way), and only showing paths that have differences in the working
tree but not paths that are different in index was confusing.

This shows both as modified from the top commit of the branch we
just have switched to.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-checkout.sh