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

[PATCH] Documentation/gitattributes.txt: Add an example box to demonstrate attributes

From
Jari Aalto <jari.aalto@cante.net>
Date
Feb 8, 2008, 18:28 UTC
Message-ID
<lk5vtia6.fsf@blue.sea.net>
Demonstrate the meaning of set, unset, set to value, unspecied in a
asciidoc 'listing block'.
---
 Documentation/gitattributes.txt |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt
index 35a29fd..cd99a8e 100644
--- a/Documentation/gitattributes.txt
+++ b/Documentation/gitattributes.txt
@@ -52,6 +52,12 @@ Unspecified::
 	the path has or does not have the attribute, the
 	attribute for the path is said to be Unspecified.
 
+----------------------------------------------------------------
+# Examples: set, unset, set to value, unspecified
+
+*.txt   attribute -attribute attribute=value !attribute
+----------------------------------------------------------------
+
 When more than one glob pattern matches the path, a later line
 overrides an earlier line.  This overriding is done per
 attribute.
-- 
1.5.3.8


-- 
Welcome to FOSS revolution: we fix and modify until it shines
Message 1 of 1 in “Documentation/gitattributes.txt: Add an example box to demonstrate attributes”
  1. Documentation/gitattributes.txt: Add an example box to demonstrate attributesJari Aalto, Feb 8, 2008

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.