author | Junio C Hamano <junkio@cox.net> | |
Fri, 23 Sep 2005 07:53:02 +0000 (00:53 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 23 Sep 2005 07:53:02 +0000 (00:53 -0700) | ||
commit | 9f92f15f897fa1a943bcec324032cc4ca1f73ecf | |
tree | 915e6390149983a80bcd574f6ccd516e0ea3288a | tree | snapshot |
parent | 2c08b3638339f9b73128c41a4882e115222608a3 | commit | diff |
Make 'git diff --cached' synonymous to 'git diff --cached HEAD'.
When making changes to different files (i.e. dirty working tree) and
committing logically separate changes in groups, often it is necessary
to run 'git diff --cached HEAD' to make sure that the changes being
committed makes sense. Saying 'git diff --cached' by mistake gives
rather uninformative error message from git-diff-files complaining it
does not understand --cached flag.
Signed-off-by: Junio C Hamano <junkio@cox.net>
When making changes to different files (i.e. dirty working tree) and
committing logically separate changes in groups, often it is necessary
to run 'git diff --cached HEAD' to make sure that the changes being
committed makes sense. Saying 'git diff --cached' by mistake gives
rather uninformative error message from git-diff-files complaining it
does not understand --cached flag.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-diff.sh | diff | blob | history |