Patrick Steinhardt <ps@xxxxxx> writes: > There are multiple sites in "pack-check.c" where we use the global > `the_repository` variable, either explicitly or implicitly by using > `the_hash_algo`. In all of those cases we already have a repository > available in the calling context though. > > Refactor the code to instead use the caller-provided repository and > remove the `USE_THE_REPOSITORY_VARIABLE` define. > > Signed-off-by: Patrick Steinhardt <ps@xxxxxx> > --- > pack-check.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > This was a simple and easy win. Nice. [snip]
Attachment:
signature.asc
Description: PGP signature