]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/gitattributes.txt
Merge branch 'jc/renormalize-merge-kill-safer-crlf' into maint
[thirdparty/git.git] / Documentation / gitattributes.txt
index d7a124b73518a5fde2a6719697e38aad60f45179..6d20400e758a9133620f5647fee74eb16618d3b1 100644 (file)
@@ -377,6 +377,11 @@ substitution.  For example:
        smudge = git-p4-filter --smudge %f
 ------------------------
 
+Note that "%f" is the name of the path that is being worked on. Depending
+on the version that is being filtered, the corresponding file on disk may
+not exist, or may have different contents. So, smudge and clean commands
+should not try to access the file on disk, but only act as filters on the
+content provided to them on standard input.
 
 Interaction between checkin/checkout attributes
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^