summaryrefslogtreecommitdiffstats
path: root/gitattributes.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-27 15:37:49 -0800
committerJunio C Hamano <gitster@pobox.com>2017-02-27 15:37:49 -0800
commitcbe0eb29622a497f18818e4481f27636446b86d7 (patch)
treeda1fda656a0a1af2c8056d46ac3175ddcf876b70 /gitattributes.txt
parentfa0dac3fc7e469b539896aae52323ed08805a46c (diff)
downloadgit-htmldocs-cbe0eb29622a497f18818e4481f27636446b86d7.tar.gz
Autogenerated HTML docs for v2.12.0-189-g3bc532
Diffstat (limited to 'gitattributes.txt')
-rw-r--r--gitattributes.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/gitattributes.txt b/gitattributes.txt
index e0b66c122..a53d093ca 100644
--- a/gitattributes.txt
+++ b/gitattributes.txt
@@ -21,9 +21,11 @@ Each line in `gitattributes` file is of form:
pattern attr1 attr2 ...
That is, a pattern followed by an attributes list,
-separated by whitespaces. When the pattern matches the
-path in question, the attributes listed on the line are given to
-the path.
+separated by whitespaces. Leading and trailing whitespaces are
+ignored. Lines that begin with '#' are ignored. Patterns
+that begin with a double quote are quoted in C style.
+When the pattern matches the path in question, the attributes
+listed on the line are given to the path.
Each attribute can be in one of these states for a given path:
@@ -86,7 +88,7 @@ is either not set or empty, $HOME/.config/git/attributes is used instead.
Attributes for all users on a system should be placed in the
`$(prefix)/etc/gitattributes` file.
-Sometimes you would need to override an setting of an attribute
+Sometimes you would need to override a setting of an attribute
for a path to `Unspecified` state. This can be done by listing
the name of the attribute prefixed with an exclamation point `!`.