From: Jeff King Date: Mon, 15 Nov 2021 19:09:42 GMT Subject: Re: [PATCH 0/3] support `--oid-only` in `ls-tree` Message-ID: In-Reply-To: <211115.86mtm5saz7.gmgdl@evledraar.gmail.com> On Mon, Nov 15, 2021 at 04:13:24PM +0100, Ævar Arnfjörð Bjarmason wrote: > But I'd much rather see this be done with adding strbuf_expand() to > ls-tree. I.e. its docs say that it can emit: I had a similar thought, but that's a much bigger task. I think it would be reasonable to add --oid-only to match the existing --name-only, etc. If we later add a custom --format option, then it can easily be folded in and explained as "this is an alias for --format=%(objectname)", just like --name-only would become "this is an alias for --format=%(path)". -Peff