add: document the chmod option
The git add --chmod option was introduced in 4e55ed3 ("add: add --chmod=+x / --chmod=-x options", 2016-05-31), but was never documented. Document the feature. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thomas Gummerer committed
Sep 12, 2016 at 22:08 UTC
7ef7903e60671bc8b13186c5ffd49c6c54435b75
1 file changed
+6
-1
Documentation/git-add.txt
+6
-1
@@ -11,7 +11,7 @@ SYNOPSIS
11
'git add' [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p]
12
[--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
13
[--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing]
14
- [--] [<pathspec>...]
14
+ [--chmod=(+|-)x] [--] [<pathspec>...]
15
16
DESCRIPTION
17
-----------
@@ -165,6 +165,11 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
165
be ignored, no matter if they are already present in the work
166
tree or not.
167
168
+--chmod=(+|-)x::
169
+ Override the executable bit of the added files. The executable
170
+ bit is only changed in the index, the files on disk are left
171
+ unchanged.
172
+
173
\--::
174
This option can be used to separate command-line options from
175
the list of files, (useful when filenames might be mistaken