Re: [PATCH v2 2/3] git-core: Support retrieving passwords with GIT_ASKPASS
- From
Frank Li <lznuaa@gmail.com>
- Date
- Feb 26, 2010, 02:17 UTC
- Message-ID
- <1976ea661002251817v12f04314vc32fe7924f31c070@mail.gmail.com>
- In-Reply-To
- <20100226005020.GR12429@genesis.frugalware.org>
Show 13 quoted lines
> According to Documentation/CodingGuidelines, this would be:
>
>
> for (i = 0; i < buffer.len; i++)
> if (buffer.buf[i] == '\n' || buffer.buf[i] == '\r') {
> buffer.buf[i] = '\0';
> buffer.len = i;
> }
> return strbuf_detach(&buffer, NULL);
>
> } else
> return getpass(prompt);
>Okay, I will change it.