mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
show_head_ref(): convert local variable "unused" 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>
This commit is contained in:
parent
f72f542107
commit
5f9cf5abd2
|
@ -408,10 +408,10 @@ static int show_head_ref(const char *refname, const struct object_id *oid,
|
|||
struct strbuf *buf = cb_data;
|
||||
|
||||
if (flag & REF_ISSYMREF) {
|
||||
unsigned char unused[20];
|
||||
struct object_id unused;
|
||||
const char *target = resolve_ref_unsafe(refname,
|
||||
RESOLVE_REF_READING,
|
||||
unused, NULL);
|
||||
unused.hash, NULL);
|
||||
const char *target_nons = strip_namespace(target);
|
||||
|
||||
strbuf_addf(buf, "ref: %s\n", target_nons);
|
||||
|
|
Loading…
Reference in a new issue