Re: [PATCH 05/12] pack-check: stop depending on `the_repository`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux