diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-12 09:47:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-12 09:47:37 -0700 |
commit | 0a315befa7cb3132ab2ee6caa7dccb2299b7a348 (patch) | |
tree | 21d74d49b997d990b7d5067dbf840490cbaa750a /builtin | |
parent | Merge branch 'jk/big-and-future-archive-tar' (diff) | |
parent | use strbuf_add_unique_abbrev() for adding short hashes (diff) | |
download | tgif-0a315befa7cb3132ab2ee6caa7dccb2299b7a348.tar.xz |
Merge branch 'rs/use-strbuf-add-unique-abbrev'
A small code clean-up.
* rs/use-strbuf-add-unique-abbrev:
use strbuf_add_unique_abbrev() for adding short hashes
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/checkout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index 8d852d4585..4866111522 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -706,8 +706,7 @@ static int add_pending_uninteresting_ref(const char *refname, static void describe_one_orphan(struct strbuf *sb, struct commit *commit) { strbuf_addstr(sb, " "); - strbuf_addstr(sb, - find_unique_abbrev(commit->object.oid.hash, DEFAULT_ABBREV)); + strbuf_add_unique_abbrev(sb, commit->object.oid.hash, DEFAULT_ABBREV); strbuf_addch(sb, ' '); if (!parse_commit(commit)) pp_commit_easy(CMIT_FMT_ONELINE, commit, sb); |