Thread (8 messages) 8 messages, 4 authors, 2016-06-15

Re: Fwd: git clone does not respect command line options

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:08:29

Possibly related (same subject, not in this thread)

On Fri, Feb 26, 2016 at 3:24 PM, Jeff King [off-list ref] wrote:
As an alternative, it would be nice to have some config syntax for
"clear the list". Maybe something like an empty string, which I think
has no meaning for the current multi-valued variables (at least not for
credential helpers or refspecs). That would allow something like:

  git -c credential.helper= clone ...

to do what you'd expect.
I've been thinking of -= instead. It's unambiguous. And you can use
wildcards on both sides. "credential.helper -= *" means delete that
key, "credential.* -= *" deletes all credential.* keys.
credential.helper -= abc only deletes it if the previous value is abc.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help