Skip to content

Commit

Permalink
append_one_rev(): rewrite to work with object_id
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed May 25, 2015
1 parent 2e253a4 commit 7a456c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/show-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, '[')) {
Expand Down

0 comments on commit 7a456c1

Please sign in to comment.