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

[PATCH 2/2] Define a few built-in attribute rules.

From
Junio C Hamano <junkio@cox.net>
Date
Apr 15, 2007, 01:03 UTC
Message-ID
<7vvefy5tzo.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vejmm78qp.fsf@assigned-by-dhcp.cox.net>
This adds an obviously sane pair of default attribute rules as built-ins.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 attr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/attr.c b/attr.c
index 3a14df1..9068c2e 100644
--- a/attr.c
+++ b/attr.c
@@ -194,6 +194,8 @@ static void free_attr_elem(struct attr_stack *e)
 }
 
 static const char *builtin_attr[] = {
+	"[attr]binary !diff !crlf",
+	"* diff crlf",
 	NULL,
 };
 
-- 
1.5.1.1.810.gac3a
Previous: Junio C HamanoNext: Linus Torvalds
Message 5 of 19 in “Add basic infrastructure to assign attributes to paths”
  1. 1/3 Add basic infrastructure to assign attributes to pathsJunio C Hamano, Apr 13, 2007
  2. Andy ParkinsApr 13, 2007
  3. Junio C HamanoApr 15, 2007
  4. 1/2 attribute macro supportJunio C Hamano, Apr 15, 2007
  5. 2/2 Define a few built-in attribute rules.Junio C Hamano, Apr 15, 2007
  6. Linus TorvaldsApr 15, 2007
  7. Brian GernhardtApr 15, 2007
  8. Junio C HamanoApr 15, 2007
  9. Junio C HamanoApr 15, 2007
  10. Johannes SchindelinApr 15, 2007
  11. Junio C HamanoApr 15, 2007
  12. Linus TorvaldsApr 15, 2007
  13. Fix 'crlf' attribute semantics.Junio C Hamano, Apr 15, 2007
  14. Fix 'diff' attribute semantics.Junio C Hamano, Apr 15, 2007
  15. Tom PrinceApr 15, 2007
  16. Junio C HamanoApr 15, 2007
  17. Raimund BauerApr 16, 2007
  18. Linus TorvaldsApr 13, 2007
  19. Johannes SchindelinApr 15, 2007

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.