projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8608db
)
Use symbolic name SHORT_NAME_AMBIGUOUS as error return value
author
Uwe Zeisberger
<zeisberg@informatik.uni-freiburg.de>
Thu, 26 Jan 2006 11:26:15 +0000
(12:26 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 27 Jan 2006 02:13:54 +0000
(18:13 -0800)
Signed-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_name.c
patch
|
blob
|
history
diff --git
a/sha1_name.c
b/sha1_name.c
index
b13ed78
..
e18a96d
100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-143,7
+143,7
@@
static int find_unique_short_object(int len, char *canonical,
}
/* Both have unique ones -- do they match? */
if (memcmp(packed_sha1, unpacked_sha1, 20))
- return
-2
;
+ return
SHORT_NAME_AMBIGUOUS
;
memcpy(sha1, packed_sha1, 20);
return 0;
}