@matheusbsbs / matheus-bagliano / commits / e974c9ab03
Fork 0

Use symbolic name SHORT_NAME_AMBIGUOUS as error return value

Signed-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Uwe Zeisberger committed Jan 26, 2006 at 12:26 UTC e974c9ab03c3c149bfc7da663167c6e59a7659f7
1 file changed +1 -1
sha1_name.c
+1 -1
@@ -143,7 +143,7 @@ static int find_unique_short_object(int len, char *canonical,
143 }
144 /* Both have unique ones -- do they match? */
145 if (memcmp(packed_sha1, unpacked_sha1, 20))
146 - return -2;
146 + return SHORT_NAME_AMBIGUOUS;
147 memcpy(sha1, packed_sha1, 20);
148 return 0;
149 }