Re: [PATCH] Add contrib/credentials/netrc with GPG support, try #2
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 5, 2013, 16:07 UTC
- Message-ID
- <7v7gmmvj5p.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <87sj5ariar.fsf@lifelogs.com>
Ted Zlatanov <tzz@lifelogs.com> writes:
Show 22 quoted lines
> On Mon, 04 Feb 2013 16:15:47 -0800 Junio C Hamano <gitster@pobox.com> wrote: > > JCH> Ted Zlatanov <tzz@lifelogs.com> writes: > >>> - do you want to support backslashed newlines? > > JCH> What for? netrc/authinfo is not a line oriented file format at all, > JCH> and > > JCH> machine k.org > JCH> login me > JCH> password mysecret > > JCH> is a single entry; you do not need backslash at the end of any line. > > Hmm. The parser I implemented only does single-line parsing, and I > misunderstood the format to be single-line (partly because I have never > seen anyone using the multi-line format you show). Looking at > Net::Netrc more carefully, it seems that the "machine" token is what > defines an entry, so a new entry starts with a new line that contains a > "machine" token. Is that acceptable and does it match your > understanding of the format? It matches Net::Netrc, at least.
I thought I've given a more concrete outline than "I'll read Net::Netrc and do whatever I think it does" in a separate message.
It would be better to read "man netrc" carefully at least once ;-)