summaryrefslogtreecommitdiff
path: root/Documentation/git-add.txt
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2016-09-12 21:08:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-12 22:03:32 (GMT)
commit7ef7903e60671bc8b13186c5ffd49c6c54435b75 (patch)
tree3f082eb677c98570f9e58ab403c487d83dbfe04e /Documentation/git-add.txt
parent4e55ed32db81d06a4f618e2cc0f9da0e223ae304 (diff)
downloadgit-7ef7903e60671bc8b13186c5ffd49c6c54435b75.zip
git-7ef7903e60671bc8b13186c5ffd49c6c54435b75.tar.gz
git-7ef7903e60671bc8b13186c5ffd49c6c54435b75.tar.bz2
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>
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r--Documentation/git-add.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 6a96a66..7ed63dc 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -11,7 +11,7 @@ SYNOPSIS
'git add' [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p]
[--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
[--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing]
- [--] [<pathspec>...]
+ [--chmod=(+|-)x] [--] [<pathspec>...]
DESCRIPTION
-----------
@@ -165,6 +165,11 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
be ignored, no matter if they are already present in the work
tree or not.
+--chmod=(+|-)x::
+ Override the executable bit of the added files. The executable
+ bit is only changed in the index, the files on disk are left
+ unchanged.
+
\--::
This option can be used to separate command-line options from
the list of files, (useful when filenames might be mistaken