diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-05-25 18:38:47 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-25 12:19:31 -0700 |
commit | 7a456c1eea83b7589b9f37fd56f53719ab431b86 (patch) | |
tree | 55fca6288bec31653953c4cc73fce6a609974149 | |
parent | builtin/show-branch: rewrite functions to take object_id arguments (diff) | |
download | tgif-7a456c1eea83b7589b9f37fd56f53719ab431b86.tar.xz |
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>
-rw-r--r-- | builtin/show-branch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/show-branch.c b/builtin/show-branch.c index 7e006577e2..b861e41926 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, '[')) { |