Re: Fwd: git clone does not respect command line options
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 26, 2016, 08:34 UTC
- Message-ID
- <CACsJy8BK=2aKg68msH9vawHrXr=PsQYgs6sGXy0koy459MYfSA@mail.gmail.com>
- In-Reply-To
- <20160226082437.GB26994@sigill.intra.peff.net>
On Fri, Feb 26, 2016 at 3:24 PM, Jeff King <peff@peff.net> wrote:
Show 8 quoted lines
> 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