]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-fetch.txt
fetch: allow explicit --refmap to override configuration
authorJunio C Hamano <gitster@pobox.com>
Thu, 29 May 2014 22:21:31 +0000 (15:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Jun 2014 22:13:12 +0000 (15:13 -0700)
commitc5558f80c3a34f411022f1bc67f8364556ca3922
tree0e5d9c3c48e7bdddd7d53e4dd7670cae5b757e66
parentfcb14b0c8d7a732b1d26b5fda18f730851a76eed
fetch: allow explicit --refmap to override configuration

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>
---
Documentation/fetch-options.txt
Documentation/git-fetch.txt
builtin/fetch.c
t/t5510-fetch.sh