]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/push.c
builtin/push.c: add push.pushOption config
authorMarius Paliga <marius.paliga@gmail.com>
Mon, 23 Oct 2017 11:44:49 +0000 (13:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Oct 2017 00:57:54 +0000 (09:57 +0900)
commitd8052750c5fdd53cb5a664a18ce9d78dbedb22ae
tree41a7ad7ed930564c6a1e788976fa42bfe447c6ba
parent4843cdefe3f30d19c1b2cf601522152c1413459a
builtin/push.c: add push.pushOption config

Push options need to be given explicitly, via the command line as "git
push --push-option <option>".  Add the config option push.pushOption,
which is a multi-valued option, containing push options that are sent
by default.

When push options are set in the lower-priority configulation file
(e.g. /etc/gitconfig, or $HOME/.gitconfig), they can be unset later in
the more specific repository config by the empty string.

Add tests and update documentation as well.

Signed-off-by: Marius Paliga <marius.paliga@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-push.txt
builtin/push.c
t/t5545-push-options.sh