diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2010-07-10 02:18:38 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-13 02:13:54 +0400 |
commit | 108da0db1277fc2f4820d0a47c02b2c63111f7a5 (patch) | |
tree | 1684b8bab6530364e446aaa2a437d19521f04e34 /Documentation | |
parent | 637ab29b86533c7ce65a615fd445d163a2c57dc9 (diff) |
git add: Add the "--ignore-missing" option for the dry run
Sometimes it is useful to know if a file or directory will be ignored
before it is added to the work tree. An example is "git submodule add",
where it would be really nice to be able to fail with an appropriate
error message before the submodule is cloned and checked out.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-add.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 74741a42f4..bfea2c2d62 100644 --- a/Documentation/git-add.txt +++ b/Documentation/git-add.txt @@ -57,7 +57,8 @@ OPTIONS -n:: --dry-run:: - Don't actually add the file(s), just show if they exist. + Don't actually add the file(s), just show if they exist and/or will + be ignored. -v:: --verbose:: @@ -131,6 +132,12 @@ subdirectories. them, do not abort the operation, but continue adding the others. The command shall still exit with non-zero status. +--ignore-missing:: + This option can only be used together with --dry-run. By using + this option the user can check if any of the given files would + be ignored, no matter if they are already present in the work + tree or not. + \--:: This option can be used to separate command-line options from the list of files, (useful when filenames might be mistaken |