aboutsummaryrefslogtreecommitdiff
path: root/Documentation/config.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-11-06 14:24:30 +0900
committerJunio C Hamano <gitster@pobox.com>2017-11-06 14:24:30 +0900
commitc692fe2c1e3b0104c5573e2ec3ae62ba2711c4e6 (patch)
tree617a3b5248c6e7f14596b292b266c0aaac7cd2d3 /Documentation/config.txt
parentb4d658b501a37d14a8542b98b59817ed59977388 (diff)
parentd8052750c5fdd53cb5a664a18ce9d78dbedb22ae (diff)
downloadgit-c692fe2c1e3b0104c5573e2ec3ae62ba2711c4e6.tar.gz
git-c692fe2c1e3b0104c5573e2ec3ae62ba2711c4e6.tar.xz
Merge branch 'mp/push-pushoption-config'
The "--push-option=<string>" option to "git push" now defaults to a list of strings configured via push.pushOption variable. * mp/push-pushoption-config: builtin/push.c: add push.pushOption config
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r--Documentation/config.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 5642defb8..5f0d62753 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -2624,6 +2624,35 @@ push.gpgSign::
override a value from a lower-priority config file. An explicit
command-line flag always overrides this config option.
+push.pushOption::
+ When no `--push-option=<option>` argument is given from the
+ command line, `git push` behaves as if each <value> of
+ this variable is given as `--push-option=<value>`.
++
+This is a multi-valued variable, and an empty value can be used in a
+higher priority configuration file (e.g. `.git/config` in a
+repository) to clear the values inherited from a lower priority
+configuration files (e.g. `$HOME/.gitconfig`).
++
+--
+
+Example:
+
+/etc/gitconfig
+ push.pushoption = a
+ push.pushoption = b
+
+~/.gitconfig
+ push.pushoption = c
+
+repo/.git/config
+ push.pushoption =
+ push.pushoption = b
+
+This will result in only b (a and c are cleared).
+
+--
+
push.recurseSubmodules::
Make sure all submodule commits used by the revisions to be pushed
are available on a remote-tracking branch. If the value is 'check'