summaryrefslogtreecommitdiffstats
path: root/gitattributes.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2011-01-06 00:34:47 +0000
committerJunio C Hamano <junio@kernel.org>2011-01-06 00:34:47 +0000
commite0552e436a51e37f2de4749736dddb80a5788e08 (patch)
tree5b3a2f9023651c0d771d67ffa1db525a052cb0ec /gitattributes.txt
parent7165bf798c79fef70904e15d0d487e713bd25ac1 (diff)
downloadgit-htmldocs-e0552e436a51e37f2de4749736dddb80a5788e08.tar.gz
Autogenerated HTML docs for v1.7.4-rc1
Diffstat (limited to 'gitattributes.txt')
-rw-r--r--gitattributes.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/gitattributes.txt b/gitattributes.txt
index 5a7f93642..22b85825a 100644
--- a/gitattributes.txt
+++ b/gitattributes.txt
@@ -335,6 +335,16 @@ input that is already correctly indented. In this case, the lack of a
smudge filter means that the clean filter _must_ accept its own output
without modifying it.
+Sequence "%f" on the filter command line is replaced with the name of
+the file the filter is working on. A filter might use this in keyword
+substitution. For example:
+
+------------------------
+[filter "p4"]
+ clean = git-p4-filter --clean %f
+ smudge = git-p4-filter --smudge %f
+------------------------
+
Interaction between checkin/checkout attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^