Browse Source

attr: Fixed debug output for macro expansion.

When debug_set() was called during macro expansion, it
received a pointer to a struct git_attr rather than a
string.

Signed-off-by: Henrik Grubbström <grubba@grubba.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Henrik Grubbström 15 years ago committed by Junio C Hamano
parent
commit
426c27b7c0
  1. 4
      attr.c

4
attr.c

@ -605,7 +605,9 @@ static int fill_one(const char *what, struct match_attr *a, int rem) @@ -605,7 +605,9 @@ static int fill_one(const char *what, struct match_attr *a, int rem)
const char *v = a->state[i].setto;

if (*n == ATTR__UNKNOWN) {
debug_set(what, a->u.pattern, attr, v);
debug_set(what,
a->is_macro ? a->u.attr->name : a->u.pattern,
attr, v);
*n = v;
rem--;
}

Loading…
Cancel
Save