summaryrefslogtreecommitdiff
path: root/builtin/show-branch.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-05-25 18:38:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-05-25 19:19:31 (GMT)
commit7a456c1eea83b7589b9f37fd56f53719ab431b86 (patch)
tree55fca6288bec31653953c4cc73fce6a609974149 /builtin/show-branch.c
parent2e253a4a12a63e7c3e807e555641539dd19ae2fa (diff)
downloadgit-7a456c1eea83b7589b9f37fd56f53719ab431b86.zip
git-7a456c1eea83b7589b9f37fd56f53719ab431b86.tar.gz
git-7a456c1eea83b7589b9f37fd56f53719ab431b86.tar.bz2
append_one_rev(): rewrite to work with object_id
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-branch.c')
-rw-r--r--builtin/show-branch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/show-branch.c b/builtin/show-branch.c
index 7e00657..b861e41 100644
--- a/builtin/show-branch.c
+++ b/builtin/show-branch.c
@@ -536,9 +536,9 @@ static int show_independent(struct commit **rev,
static void append_one_rev(const char *av)
{
- unsigned char revkey[20];
- if (!get_sha1(av, revkey)) {
- append_ref(av, revkey, 0);
+ struct object_id revkey;
+ if (!get_sha1(av, revkey.hash)) {
+ append_ref(av, revkey.hash, 0);
return;
}
if (strchr(av, '*') || strchr(av, '?') || strchr(av, '[')) {