diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-05-29 15:21:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-05 15:13:12 -0700 |
commit | c5558f80c3a34f411022f1bc67f8364556ca3922 (patch) | |
tree | 0e5d9c3c48e7bdddd7d53e4dd7670cae5b757e66 /Documentation/git-fetch.txt | |
parent | fcb14b0c8d7a732b1d26b5fda18f730851a76eed (diff) | |
download | git-c5558f80c3a34f411022f1bc67f8364556ca3922.tar.gz |
fetch: allow explicit --refmap to override configurationjc/fetch-push-refmap
Since the introduction of opportunisitic updates of remote-tracking
branches, started at around f2690487 (fetch: opportunistically
update tracking refs, 2013-05-11) with a few updates in v1.8.4 era,
the remote.*.fetch configuration always kicks in even when a refspec
to specify what to fetch is given on the command line, and there is
no way to disable or override it per-invocation.
Teach the command to pay attention to the --refmap=<lhs>:<rhs>
command-line options that can be used to override the use of
configured remote.*.fetch as the refmap.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
Diffstat (limited to 'Documentation/git-fetch.txt')
-rw-r--r-- | Documentation/git-fetch.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-fetch.txt b/Documentation/git-fetch.txt index 7f818c348b..629a1cfe00 100644 --- a/Documentation/git-fetch.txt +++ b/Documentation/git-fetch.txt @@ -95,6 +95,10 @@ This configuration is used in two ways: only used to decide _where_ the refs that are fetched are stored by acting as a mapping. +The latter use of the `remote.<repository>.fetch` values can be +overridden by giving the `--refmap=<refspec>` parameter(s) on the +command line. + EXAMPLES -------- |