Skip to content

Commit bf3a55a

Browse files
committed
Merge branch 'et/add-chmod-x' into maint
"git add --chmod=+x" added recently lacked documentation, which has been corrected. * et/add-chmod-x: add: document the chmod option
2 parents cec5f0b + 7ef7903 commit bf3a55a

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)