projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
git-describe: use find_unique_abbrev()
[git.git]
/
describe.c
diff --git
a/describe.c
b/describe.c
index
e1b6588
..
ba49d00
100644
(file)
--- a/
describe.c
+++ b/
describe.c
@@
-95,7
+95,8
@@
static void describe(struct commit *cmit)
struct commit *c = pop_most_recent_commit(&list, SEEN);
n = match(c);
if (n) {
- printf("%s-g%.8s\n", n->path, sha1_to_hex(cmit->object.sha1));
+ printf("%s-g%s\n", n->path,
+ find_unique_abbrev(cmit->object.sha1, 8));
return;
}
}