From: Karthik Nayak Date: Fri, 17 Jan 2025 08:47:42 GMT Subject: Re: [PATCH 2/5] pack-write: pass repository to `index_pack_lockfile()` Message-ID: In-Reply-To: Junio C Hamano writes: > Karthik Nayak via B4 Relay > writes: > >> From: Karthik Nayak >> >> The `index_pack_lockfile()` function uses the global `the_repository` >> variable to access the repository. To avoid global variable usage, pass >> the repository from the layers above. >> >> Altough the layers above could have access to the hash function > > I do not think the choice of the hash algorithm has much to do with > this change, though ;-) > Oops, copy-paste error. Thanks for pointing out, will fix. [snip]