Re: [PATCH v2 02/12] commit-graph: verify file header information
- From
Derrick Stolee <stolee@gmail.com>
- Date
- May 14, 2018, 13:31 UTC
- Message-ID
- <0964380e-1ec9-46c4-ea59-f8890d9ed711@gmail.com>
- In-Reply-To
- <CAN0heSrKFJbgwXXzUKaJQn24pY43S2bsn9Zx6Yyy6M2X2wDJ7w@mail.gmail.com>
On 5/12/2018 9:35 AM, Martin Ågren wrote:
Show 15 quoted lines
> +static int verify_commit_graph_error;
> +
> +static void graph_report(const char *fmt, ...)
> +{
> + va_list ap;
> + struct strbuf sb = STRBUF_INIT;
> + verify_commit_graph_error = 1;
> +
> + va_start(ap, fmt);
> + strbuf_vaddf(&sb, fmt, ap);
> +
> + fprintf(stderr, "%s\n", sb.buf);
> + strbuf_release(&sb);
> + va_end(ap);
> +}That's a good idea. Makes that patch a bit less trivial and this one a bit less difficult.