diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-12-25 13:12:55 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-25 13:12:55 -0800 |
commit | 2f5a9896b8a0020ce124ca87764bc91f565e48bb (patch) | |
tree | 169d2a3dbcd625aef74728e004d2d20157a5bcbd /git-add.txt | |
parent | 2267da58fbe3aef887c21a27fd6b056bf6b38fcf (diff) | |
download | git-htmldocs-2f5a9896b8a0020ce124ca87764bc91f565e48bb.tar.gz |
Autogenerated HTML docs for v2.25.0-rc0
Diffstat (limited to 'git-add.txt')
-rw-r--r-- | git-add.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/git-add.txt b/git-add.txt index 8b0e4c7fa..be5e3ac54 100644 --- a/git-add.txt +++ b/git-add.txt @@ -11,7 +11,8 @@ 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] [--renormalize] - [--chmod=(+|-)x] [--] [<pathspec>...] + [--chmod=(+|-)x] [--pathspec-from-file=<file> [--pathspec-file-nul]] + [--] [<pathspec>...] DESCRIPTION ----------- @@ -187,6 +188,19 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files. bit is only changed in the index, the files on disk are left unchanged. +--pathspec-from-file=<file>:: + Pathspec is passed in `<file>` instead of commandline args. If + `<file>` is exactly `-` then standard input is used. Pathspec + elements are separated by LF or CR/LF. Pathspec elements can be + quoted as explained for the configuration variable `core.quotePath` + (see linkgit:git-config[1]). See also `--pathspec-file-nul` and + global `--literal-pathspecs`. + +--pathspec-file-nul:: + Only meaningful with `--pathspec-from-file`. Pathspec elements are + separated with NUL character and all other characters are taken + literally (including newlines and quotes). + \--:: This option can be used to separate command-line options from the list of files, (useful when filenames might be mistaken |