Re: [RFC] Subtle differences in passing configs to git clone

2017-02-21 Thread Jeff King
On Tue, Feb 21, 2017 at 12:36:25PM +0100, Lars Schneider wrote: > I stumbled across the following today: > > (1) git -c foo.bar="foobar" clone > > --> uses the config temporarily > > > (2) git clone -c foo.bar="foobar" > > --> uses the config and writes it to .git/config > > This was

[RFC] Subtle differences in passing configs to git clone

2017-02-21 Thread Lars Schneider
Hi, I stumbled across the following today: (1) git -c foo.bar="foobar" clone --> uses the config temporarily (2) git clone -c foo.bar="foobar" --> uses the config and writes it to .git/config This was introduced in 84054f7 ("clone: accept config options on the command line") and it