Re: [PATCH v6 09/11] trailer: execute command from 'trailer.<name>.command'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 5, 2014, 22:57 UTC
- Message-ID
- <xmqqvbvsz22d.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20140304194810.14249.44355.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 10 quoted lines
> diff --git a/trailer.c b/trailer.c
> index ab93c16..67e7baf 100644
> --- a/trailer.c
> +++ b/trailer.c
> @@ -490,12 +544,22 @@ static struct trailer_item *process_command_line_args(int argc, const char **arg
> ...
> + /* Add conf commands that don't use $ARG */
> + for (item = first_conf_item; item; item = item->next) {
> + if (item->conf.command && !item->conf.command_uses_arg)
> + {Opening brace of a block sits on the same line as the closing condition of the control. I.e.
if (...) {