author | Junio C Hamano <junkio@cox.net> | |
Sun, 25 Feb 2007 06:26:33 +0000 (22:26 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 25 Feb 2007 19:09:56 +0000 (11:09 -0800) | ||
commit | 6c09c451389ade6477d98b05d277aab0dd2f272e | |
tree | 1921a2e641de643a7bd791c379f242311c5d9e35 | tree | snapshot |
parent | 56cf9806a97f5fe9a91c38aa3eb8cec0c76480e6 | commit | diff |
diff --cached: give more sensible error message when HEAD is yet to be created.
It is not like the user said 'diff --cached HEAD', so complaining about
HEAD not being a valid commit, while technically might be correct, is
not very helpful.
Signed-off-by: Junio C Hamano <junkio@cox.net>
It is not like the user said 'diff --cached HEAD', so complaining about
HEAD not being a valid commit, while technically might be correct, is
not very helpful.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-diff.c | diff | blob | history |