Re: [PATCH 07/17] fixup! index-pack, pack-objects: allow creating .idx v2 with .pack v4

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

 



On Sat, 21 Sep 2013, Nguyễn Thái Ngọc Duy wrote:

> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx>
> ---
>  sha1_file.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/sha1_file.c b/sha1_file.c
> index e98eb8b..ef6ecc8 100644
> --- a/sha1_file.c
> +++ b/sha1_file.c
> @@ -605,7 +605,9 @@ static int check_packed_git_idx(const char *path,  struct packed_git *p)
>  		}
>  		p->sha1_table = pack_map;
>  		p->sha1_table += 12;
> -	} else
> +	} else if (version == 2)
> +		p->sha1_table = idx_map + 8 + 4 * 256;
> +	else
>  		p->sha1_table = NULL;

I folded it into "pack v4: initial pack index v3 support on the read 
side" rather than "index-pack, pack-objects: allow creating .idx v2 with 
.pack v4".


Nicolas

[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]