Re: [PATCH v4 5/8] interpret-trailers: add --parse convenience option

2017-08-17 Thread Martin Ågren
On 16 August 2017 at 10:20, Jeff King wrote: > On Tue, Aug 15, 2017 at 01:26:53PM +0200, Martin Ågren wrote: > >> > This command reads some patches or commit messages from either the >> > - arguments or the standard input if no is specified. Then >> > -this command applies the arguments passed u

Re: [PATCH v4 5/8] interpret-trailers: add --parse convenience option

2017-08-16 Thread Jeff King
On Tue, Aug 15, 2017 at 01:26:53PM +0200, Martin Ågren wrote: > > This command reads some patches or commit messages from either the > > - arguments or the standard input if no is specified. Then > > -this command applies the arguments passed using the `--trailer` > > -option, if any, to the com

Re: [PATCH v4 5/8] interpret-trailers: add --parse convenience option

2017-08-15 Thread Martin Ågren
On 15 August 2017 at 12:23, Jeff King wrote: > SYNOPSIS > > [verse] > -'git interpret-trailers' [--in-place] [--trim-empty] [(--trailer > [(=|:)])...] [...] > +'git interpret-trailers' [options] [(--trailer [(=|:)])...] > [...] > +'git interpret-trailers' [options] [--parse] [...] >

[PATCH v4 5/8] interpret-trailers: add --parse convenience option

2017-08-15 Thread Jeff King
The last few commits have added command line options that can turn interpret-trailers into a parsing tool. Since they'd most often be used together, let's provide a convenient single option for callers to invoke this mode. This is implemented as a callback rather than a boolean so that its effect