git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc git: multivar configuration parameters append to existing values
@ 2014-06-16 12:49 Philip Oakley
  2014-06-16 18:35 ` Tanay Abhra
  2014-06-16 18:43 ` Junio C Hamano
  0 siblings, 2 replies; 8+ messages in thread
From: Philip Oakley @ 2014-06-16 12:49 UTC (permalink / raw)
  To: GitList, Junio C Hamano
  Cc: Jeff King, Ævar Arnfjörð Bjarmason,
	Robert Clausecker, Alex Riesen, Tanay Abhra

When the '-c' option is used to pass alternate URLs or similar
multivar parameters to git commands the effect is not what the user
expected [1,2].

Clarify that multivar configuration parameters do not supercede
previous values. Suggest an alternative style parameter.

[1] http://article.gmane.org/gmane.comp.version-control.git/250427
[2] http://article.gmane.org/gmane.comp.version-control.git/251529

Signed-off-by: Philip Oakley <philipoakley@iee.org>
---
 Documentation/git.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/git.txt b/Documentation/git.txt
index 3bd68b0..bedbd76 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -440,7 +440,10 @@ example the following invocations are equivalent:
 
 -c <name>=<value>::
 	Pass a configuration parameter to the command. The value
-	given will override values from configuration files.
+	given will override single valued variables from configuration
+	files, and append to multivar variables. Previous multivar values
+	remain in effect. Use "insteadOf" style config variables when an
+	over-ride is needed.
 	The <name> is expected in the same format as listed by
 	'git config' (subkeys separated by dots).
 
-- 
1.9.4.msysgit.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-06-17 22:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16 12:49 [PATCH] doc git: multivar configuration parameters append to existing values Philip Oakley
2014-06-16 18:35 ` Tanay Abhra
2014-06-16 19:42   ` Philip Oakley
2014-06-16 18:43 ` Junio C Hamano
2014-06-16 19:38   ` Philip Oakley
2014-06-16 21:10     ` Junio C Hamano
2014-06-17 22:03       ` Philip Oakley
2014-06-16 19:48   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).