From: Junio C Hamano Date: Fri, 23 Sep 2005 07:53:02 +0000 (-0700) Subject: Make 'git diff --cached' synonymous to 'git diff --cached HEAD'. X-Git-Tag: v0.99.8~75^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9f92f15f897fa1a943bcec324032cc4ca1f73ecf?ds=inline;hp=9f92f15f897fa1a943bcec324032cc4ca1f73ecf 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 ---