diff options
author | Junio C Hamano <junio@kernel.org> | 2011-08-18 06:13:13 +0000 |
---|---|---|
committer | Junio C Hamano <junio@kernel.org> | 2011-08-18 06:13:13 +0000 |
commit | f727901f143d965c00ad283c9cfaee214464e9fd (patch) | |
tree | 257c17b95a31532b7e1365bb5d6f5281afb18dea /git-check-attr.txt | |
parent | df1f3a600a762224ed9c8a5e5123d5bc9e971c12 (diff) | |
download | git-htmldocs-f727901f143d965c00ad283c9cfaee214464e9fd.tar.gz |
Autogenerated HTML docs for v1.7.6-549-gf85a0
Diffstat (limited to 'git-check-attr.txt')
-rw-r--r-- | git-check-attr.txt | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/git-check-attr.txt b/git-check-attr.txt index 30eca6cee..1f7312a18 100644 --- a/git-check-attr.txt +++ b/git-check-attr.txt @@ -9,8 +9,8 @@ git-check-attr - Display gitattributes information SYNOPSIS -------- [verse] -'git check-attr' attr... [--] pathname... -'git check-attr' --stdin [-z] attr... < <list-of-paths> +'git check-attr' [-a | --all | attr...] [--] pathname... +'git check-attr' --stdin [-z] [-a | --all | attr...] < <list-of-paths> DESCRIPTION ----------- @@ -19,6 +19,11 @@ For every pathname, this command will list if each attribute is 'unspecified', OPTIONS ------- +-a, --all:: + List all attributes that are associated with the specified + paths. If this option is used, then 'unspecified' attributes + will not be included in the output. + --stdin:: Read file names from stdin instead of from the command-line. @@ -28,8 +33,11 @@ OPTIONS \--:: Interpret all preceding arguments as attributes and all following - arguments as path names. If not supplied, only the first argument will - be treated as an attribute. + arguments as path names. + +If none of `--stdin`, `--all`, or `--` is used, the first argument +will be treated as an attribute and the rest of the arguments as +pathnames. OUTPUT ------ @@ -69,6 +77,13 @@ org/example/MyClass.java: diff: java org/example/MyClass.java: myAttr: set --------------- +* Listing all attributes for a file: +--------------- +$ git check-attr --all -- org/example/MyClass.java +org/example/MyClass.java: diff: java +org/example/MyClass.java: myAttr: set +--------------- + * Listing an attribute for multiple files: --------------- $ git check-attr myAttr -- org/example/MyClass.java org/example/NoMyAttr.java |