Re: [PATCH] for-each-ref: add option to omit newlines
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 14, 2014, 16:28 UTC
- Message-ID
- <xmqq38jlk6a1.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <loom.20140214T085928-630@post.gmane.org>
Øystein Walle <oystwa@gmail.com> writes:
> However, when specifying a format string it's just a matter of ending > the format string in '%00' and you're good to go. But then you get the > null byte *and* a newline. And with your proposal there would be no way > of saying you want neither.
I very well understand that. All other commands that support "-z" to give you NUL terminated output do not consider that a downside. Why should for-each-ref be special?