Code

sha1_name: Suggest commit:./file for path in subdir
authorMichael J Gruber <git@drmicha.warpmail.net>
Thu, 31 Mar 2011 09:17:34 +0000 (11:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Apr 2011 19:24:27 +0000 (12:24 -0700)
commite41d718c7df31c891b242bcf3a1cfea812308e40
treea2bff4805758efec4a43148257fff1c5c91d23f0
parent34df9abb41289e475befd05754e518f44f921ef0
sha1_name: Suggest commit:./file for path in subdir

Currently, the "Did you mean..." message suggests "commit:fullpath"
only. Extend this to show the more convenient "commit:./file" form also.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c
t/t1506-rev-parse-diagnosis.sh