author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Mon, 7 Dec 2009 10:10:50 +0000 (11:10 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Dec 2009 21:35:06 +0000 (13:35 -0800) | ||
commit | 009fee4774d4fa607cd97519d1044e426ed423b8 | |
tree | d29db0e8780e211abf2d46aa2441c04e22ce0460 | tree | snapshot |
parent | 9a424b276c409a3510e7735b6ecc012f50dc2a49 | commit | diff |
Detailed diagnosis when parsing an object name fails.
The previous error message was the same in many situations (unknown
revision or path not in the working tree). We try to help the user as
much as possible to understand the error, especially with the
sha1:filename notation. In this case, we say whether the sha1 or the
filename is problematic, and diagnose the confusion between
relative-to-root and relative-to-$PWD confusion precisely.
The 7 new error messages are tested.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The previous error message was the same in many situations (unknown
revision or path not in the working tree). We try to help the user as
much as possible to understand the error, especially with the
sha1:filename notation. In this case, we say whether the sha1 or the
filename is problematic, and diagnose the confusion between
relative-to-root and relative-to-$PWD confusion precisely.
The 7 new error messages are tested.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
setup.c | diff | blob | history | |
sha1_name.c | diff | blob | history | |
t/t1506-rev-parse-diagnosis.sh | [new file with mode: 0755] | blob |