From: shejialuo Date: Wed, 20 Nov 2024 12:58:41 GMT Subject: Re: [PATCH v2 03/10] midx-write: use `revs->repo` inside `read_refs_snapshot` Message-ID: In-Reply-To: <20241119-374-refactor-midx-c-and-midx-write-c-to-not-depend-on-global-state-v2-3-e2f607174efc@gmail.com> On Tue, Nov 19, 2024 at 04:36:42PM +0100, Karthik Nayak wrote: > The `read_refs_snapshot` uses the `parse_oid_hex` function which > internally uses global variables. Let's instead use Nit: s/variables/variable > `parse_oid_hex_algop` and provide the hash algo via `revs->repo`. > > Also, while here, fix a missing newline after the functions definition. > Nit: s/functions/function > Signed-off-by: Karthik Nayak