git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Attr: Fixed debug output for macro expansion.

From
Henrik Grubbström (Grubba) <grubba@grubba.org>
Date
Apr 2, 2010, 13:53 UTC
Message-ID
<ca1f7f974d72a036dd8369309d487bbd047a8e2d.1270216006.git.grubba@grubba.org>

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>
---
 attr.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/attr.c b/attr.c
index f5346ed..5c6464e 100644
--- a/attr.c
+++ b/attr.c
@@ -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--;
 		}
-- 
1.7.0.3.316.g33b5e
Next: Henrik Grubbström (Grubba)
Message 1 of 3 in “Attr: Fixed debug output for macro expansion.”
  1. 1/2 Attr: Fixed debug output for macro expansion.Henrik Grubbström (Grubba), Apr 2, 2010
  2. 2/2 Attr: Allow macros to override earlier attributes.Henrik Grubbström (Grubba), Apr 2, 2010
  3. Henrik GrubbströmApr 2, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.