Re: [RFC PATCH 1/1] for-each-ref: add '--no-symbolic' option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 9, 2019, 18:08 UTC
- Message-ID
- <xmqq1rwpl4uz.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAAikoA+MvORDJ6y=VSk_1s6v7110UeOfU2X2G7=9ChV+m+COxQ@mail.gmail.com>
Eric Freese <ericdfreese@gmail.com> writes:
> However, this still prints an empty line for each ref that does not match the > condition. This can be cleaned up by piping through `grep .`, but what would > you think of adding a new optional flag to git-for-each-ref to prevent it from > printing empty expanded format strings?
Offhand I do not think of a reason why anybody wants to give a format that results in a total blank, so it might not even need to be an optional behaviour, but certainly a new option that triggers such a behaviour would be a safe thing to add.