Re: [PATCH] rev-list: restore the NUL commit separator in --header mode
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 20, 2016, 18:46 UTC
- Message-ID
- <xmqq8ttihn9l.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CA+P7+xq5bo-Fwa95j3aynjMP0Qw+PiuMt=hc4ngvTDpeG8nhPw@mail.gmail.com>
Jacob Keller <jacob.keller@gmail.com> writes:
> I did some searching, and we do use sed so I replaced it with sed \$!d > which appears to work. I think we should probably implement a > test_ends_with_nul or something.
As it is "a stream editor that shall read one or more text files", I do not think "sed" is any better (or any worse) than "tail -n" from the portability point of view. They both may happen to work on GNU systems.