Re: [PATCH v4 7/8] update-ref: support multiple simultaneous updates
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 4, 2013, 19:17 UTC
- Message-ID
- <xmqqk3iwmm6l.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <ad27a96b70198e837ac61995a1328960e10072bc.1378307529.git.brad.king@kitware.com>
Brad King <brad.king@kitware.com> writes:
Show 12 quoted lines
> +static void update_refs_stdin_read_n()
> +{
> + struct strbuf line = STRBUF_INIT;
> +
> + while (strbuf_getline(&line, stdin, '\n') != EOF)
> + update_refs_stdin_parse_line(line.buf);
> +
> + strbuf_release(&line);
> +}
> +
> +static void update_refs_stdin_read_z()
> +{These need to be defined with explicit (void) argument list.
static void foo(void)
{
...