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.
Consider .gitattributes in the index only, ignoring the working
Read pathnames from the standard input, one per line, instead of
from the command-line.
The output format is modified to be machine-parseable. If --stdin
is also given, input paths are separated with a NUL character
instead of a linefeed character.
Interpret all preceding arguments as attributes and all following
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.
The output is of the form: <path> COLON SP <attribute> COLON SP
unless -z is in effect, in which case NUL is used as delimiter:
<path> NUL <attribute> NUL <info> NUL
<path> is the path of a file being queried, <attribute> is an
attribute being queried and <info> can be either:
when the attribute is not defined for the path.
when the attribute is defined as false.
when the attribute is defined as true.
when a value has been assigned to the attribute.
Buffering happens as documented under the GIT_FLUSH option in git(1).
The caller is responsible for avoiding deadlocks caused by
overfilling an input buffer or reading from an empty output buffer.
This page is part of the git (Git distributed version control system)
project. Information about the project can be found at
⟨http://git-scm.com/⟩. If you have a bug report for this manual page,
see ⟨http://git-scm.com/community⟩. This page was obtained from the
project's upstream Git repository ⟨https://github.com/git/git.git⟩ on
2017-03-13. If you discover any rendering problems in this HTML ver‐
sion of the page, or you believe there is a better or more up-to-date
source for the page, or you have corrections or improvements to the
information in this COLOPHON (which is not part of the original man‐
ual page), send a mail to email@example.com
Git 188.8.131.529.ge5da865 12/17/2015 GIT-CHECK-ATTR(1)