aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-check-attr.txt
diff options
context:
space:
mode:
authorJay Soffian <jaysoffian@gmail.com>2011-09-22 17:44:20 -0400
committerJunio C Hamano <gitster@pobox.com>2011-09-22 16:38:22 -0700
commitb2b3e9c2d623359ed680a5eef850ef2fd313b73c (patch)
tree8a8417ac565eba8fd0776367375e73d230597ed5 /Documentation/git-check-attr.txt
parent167a5800cb707ed489c3cb88174ee21e95a610ae (diff)
downloadgit-b2b3e9c2d623359ed680a5eef850ef2fd313b73c.tar.gz
Teach '--cached' option to check-attr
This option causes check-attr to consider .gitattributes only from the index, ignoring .gitattributes from the working tree. This allows the command to be used in situations where a working tree does not exist. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-check-attr.txt')
-rw-r--r--Documentation/git-check-attr.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-check-attr.txt b/Documentation/git-check-attr.txt
index 1f7312a189..5abdbaa51c 100644
--- a/Documentation/git-check-attr.txt
+++ b/Documentation/git-check-attr.txt
@@ -24,6 +24,9 @@ OPTIONS
paths. If this option is used, then 'unspecified' attributes
will not be included in the output.
+--cached::
+ Consider `.gitattributes` in the index only, ignoring the working tree.
+
--stdin::
Read file names from stdin instead of from the command-line.