Re: [PATCH 2/9] hash: add discard primitive
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jul 3, 2026, 11:27 UTC
- Message-ID
- <akecmzUCO7RyrQcO@pks.im>
- In-Reply-To
- <20260702075953.GB2029434@coredump.intra.peff.net>
On Thu, Jul 02, 2026 at 03:59:53AM -0400, Jeff King wrote:
Show 9 quoted lines
> diff --git a/hash.c b/hash.c > index e925b9754e..63672a3d22 100644 > --- a/hash.c > +++ b/hash.c > @@ -283,6 +283,18 @@ void git_hash_final_oid(struct object_id *oid, struct git_hash_ctx *ctx) > ctx->algop->final_oid_fn(oid, ctx); > } > > +void git_hash_discard(struct git_hash_ctx *ctx)
As the resident naming czar: shouldn't this rather be called `git_hash_release()`?
Patrick