Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/describe-unique-abbrev'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 13 Feb 2018 21:39:07 +0000
(13:39 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 13 Feb 2018 21:39:07 +0000
(13:39 -0800)
Code clean-up.
* rs/describe-unique-abbrev:
describe: use strbuf_add_unique_abbrev() for adding short hashes
builtin/describe.c
patch
|
blob
|
history
raw
(from parent 1:
ab5a940
)
diff --git
a/builtin/describe.c
b/builtin/describe.c
index 6fe1c51281bf1bb6a92f00d837fecf60fe38ca31..c4289847063ac02ed061f890ffd71cd329d67109 100644
(file)
--- a/
builtin/describe.c
+++ b/
builtin/describe.c
@@
-383,7
+383,7
@@
static void describe_commit(struct object_id *oid, struct strbuf *dst)
if (!match_cnt) {
struct object_id *cmit_oid = &cmit->object.oid;
if (always) {
- strbuf_add
str(dst, find_unique_abbrev(cmit_oid->hash, abbrev)
);
+ strbuf_add
_unique_abbrev(dst, cmit_oid->hash, abbrev
);
if (suffix)
strbuf_addstr(dst, suffix);
return;