show_ref(): convert local variable peeled to 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>

Michael Haggerty committed May 25, 2015 at 18:38 UTC a0cde90ebfe22d879fd9c272afdef9301ca8b51d
1 file changed +3 -3
builtin/show-ref.c
+3 -3
@@ -30,7 +30,7 @@ static int show_ref(const char *refname, const struct object_id *oid,
30 int flag, void *cbdata)
31 {
32 const char *hex;
33 - unsigned char peeled[20];
33 + struct object_id peeled;
34
35 if (show_head && !strcmp(refname, "HEAD"))
36 goto match;
@@ -82,8 +82,8 @@ match:
82 if (!deref_tags)
83 return 0;
84
85 - if (!peel_ref(refname, peeled)) {
86 - hex = find_unique_abbrev(peeled, abbrev);
85 + if (!peel_ref(refname, peeled.hash)) {
86 + hex = find_unique_abbrev(peeled.hash, abbrev);
87 printf("%s %s^{}\n", hex, refname);
88 }
89 return 0;