author | Michael Haggerty <mhagger@alum.mit.edu> | |
Thu, 4 Aug 2011 04:36:32 +0000 (06:36 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 4 Aug 2011 22:53:20 +0000 (15:53 -0700) | ||
commit | ca64d061e0ddf7fa1496a15c75eb5e730c4360e0 | |
tree | 4689979dd59781cad786e105c6ae71bf688e6542 | tree | snapshot |
parent | c9d8f0ac3b9029d825c7d1c049953aacbc489e1c | commit | diff |
git-check-attr: Fix command-line handling to match docs
According to the git-check-attr synopsis, if the '--stdin' option is
used then no pathnames are expected on the command line. Change the
behavior to match this description; namely, if '--stdin' is used but
not '--', then treat all command-line arguments as attribute names.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
According to the git-check-attr synopsis, if the '--stdin' option is
used then no pathnames are expected on the command line. Change the
behavior to match this description; namely, if '--stdin' is used but
not '--', then treat all command-line arguments as attribute names.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-check-attr.txt | diff | blob | history | |
builtin/check-attr.c | diff | blob | history | |
t/t0003-attributes.sh | diff | blob | history |