Re: [PATCH v3 07/12] list-objects: handle NULL function pointers
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 9, 2022, 18:32 UTC
- Message-ID
- <xmqqa6dzm0xl.fsf@gitster.g>
- In-Reply-To
- <220309.86k0d3mee3.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> I suspect what's wanted here is "print all stuff before the "\n\n" > header/PACK delimiter, which is better done with "sed" like this: > > sed -n -e '/^$/q' -e 'p'
I see. Or just "sed -e '/^$/q'" would also be fine (i.e. "print everything up to, including the first blank line") for comparison purposes and may be simpler.
Thanks.