Re: [PATCH] Add contrib/credentials/netrc with GPG support, try #2
From: Ted Zlatanov <hidden>
Date: 2016-06-15 22:56:04
On Tue, 05 Feb 2013 11:47:56 -0800 Junio C Hamano [off-list ref] wrote: JCH> Ted Zlatanov [off-list ref] writes: JCH> Oh, another thing. 'default' is like 'machine' followed by any JCH> machine name, so the above while loop that reads two tokens JCH> pair-wise needs to be aware that 'default' is not followed by a JCH> value. I think the loop will fail to parse this:
quoted
JCH> default login anonymous password me@home JCH> machine k.org login me password mysecret
quoted
I'd prefer to ignore "default" because it should not be used for the Git credential helpers (its only use case is for anonymous services AFAIK). So I'll add a case to ignore it in PATCHv4, if that's OK.
JCH> You still need to parse a file that has a "default" entry correctly; JCH> otherwise the users won't be able to share existing .netrc files JCH> with other applications e.g. ftp, which is the whole point of this JCH> series. Not using values from the "default" entry is probably fine, JCH> though. OK; done in PATCHv4. Ted