summaryrefslogtreecommitdiffstats
path: root/gitattributes.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-09-30 00:04:34 +0000
committerJunio C Hamano <junio@kernel.org>2010-09-30 00:04:34 +0000
commit3b4609d029e2db42b5154f019facecee49196bf0 (patch)
tree6d059b8455a973760f1680791fbdf8c453fe387e /gitattributes.txt
parent442206cbc570d6bc05423bd8a54db5f06d740c65 (diff)
downloadgit-htmldocs-3b4609d029e2db42b5154f019facecee49196bf0.tar.gz
Autogenerated HTML docs for v1.7.3.1-45-g9855
Diffstat (limited to 'gitattributes.txt')
-rw-r--r--gitattributes.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/gitattributes.txt b/gitattributes.txt
index e5a27d875..c80ca5da4 100644
--- a/gitattributes.txt
+++ b/gitattributes.txt
@@ -62,14 +62,21 @@ consults `$GIT_DIR/info/attributes` file (which has the highest
precedence), `.gitattributes` file in the same directory as the
path in question, and its parent directories up to the toplevel of the
work tree (the further the directory that contains `.gitattributes`
-is from the path in question, the lower its precedence).
+is from the path in question, the lower its precedence). Finally
+global and system-wide files are considered (they have the lowest
+precedence).
If you wish to affect only a single repository (i.e., to assign
-attributes to files that are particular to one user's workflow), then
+attributes to files that are particular to
+one user's workflow for that repository), then
attributes should be placed in the `$GIT_DIR/info/attributes` file.
Attributes which should be version-controlled and distributed to other
repositories (i.e., attributes of interest to all users) should go into
-`.gitattributes` files.
+`.gitattributes` files. Attributes that should affect all repositories
+for a single user should be placed in a file specified by the
+`core.attributesfile` configuration option (see linkgit:git-config[1]).
+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
for a path to `unspecified` state. This can be done by listing
@@ -477,6 +484,8 @@ patterns are available:
- `csharp` suitable for source code in the C# language.
+- `fortran` suitable for source code in the Fortran language.
+
- `html` suitable for HTML/XHTML documents.
- `java` suitable for source code in the Java language.