Skip to content

Commit 7ef7903

Browse files
tgummerergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4e55ed3 commit 7ef7903

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Documentation/git-add.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SYNOPSIS
1111
'git add' [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p]
1212
[--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
1313
[--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing]
14-
[--] [<pathspec>...]
14+
[--chmod=(+|-)x] [--] [<pathspec>...]
1515

1616
DESCRIPTION
1717
-----------
@@ -165,6 +165,11 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
165165
be ignored, no matter if they are already present in the work
166166
tree or not.
167167

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+
168173
\--::
169174
This option can be used to separate command-line options from
170175
the list of files, (useful when filenames might be mistaken

0 commit comments

Comments
 (0)