summaryrefslogtreecommitdiff
path: root/Documentation/fetch-options.txt
diff options
context:
space:
mode:
authorJay Soffian <jaysoffian@gmail.com>2009-11-10 09:19:43 +0100
committerJunio C Hamano <gitster@pobox.com>2009-11-10 01:02:12 -0800
commit28a1540132ab98a82cb6ed2cb98458e4e7926acd (patch)
tree62f638780d73e8403ab6a03ad92564503ccb5cb3 /Documentation/fetch-options.txt
parentf360d844de4b752b4cba2343b95592ae4d55d09a (diff)
downloadgit-28a1540132ab98a82cb6ed2cb98458e4e7926acd.tar.gz
builtin-fetch: add --dry-run option
Teach fetch --dry-run as users of "git remote prune" switching to "git fetch --prune" may expect it. Unfortunately OPT__DRY_RUN() cannot be used as fetch already uses "-n" for something else. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/fetch-options.txt')
-rw-r--r--Documentation/fetch-options.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt
index 500637a08b..ab6419fe6e 100644
--- a/Documentation/fetch-options.txt
+++ b/Documentation/fetch-options.txt
@@ -12,6 +12,11 @@
`git clone` with `--depth=<depth>` option (see linkgit:git-clone[1])
by the specified number of commits.
+ifndef::git-pull[]
+--dry-run::
+ Show what would be done, without making any changes.
+endif::git-pull[]
+
-f::
--force::
When 'git-fetch' is used with `<rbranch>:<lbranch>`