Re: [PATCH v3 17/21] repack: consider bitmaps when performing repacks

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

 



Jeff King <peff@xxxxxxxx> writes:

> From: Vicent Marti <tanoku@xxxxxxxxx>
>
> Since `pack-objects` will write a `.bitmap` file next to the `.pack` and
> `.idx` files, this commit teaches `git-repack` to consider the new
> bitmap indexes (if they exist) when performing repack operations.
>
> This implies moving old bitmap indexes out of the way if we are
> repacking a repository that already has them, and moving the newly
> generated bitmap indexes into the `objects/pack` directory, next to
> their corresponding packfiles.
>
> Since `git repack` is now capable of handling these `.bitmap` files,
> a normal `git gc` run on a repository that has `pack.writebitmaps` set
> to true in its config file will generate bitmap indexes as part of the
> garbage collection process.
>
> Alternatively, `git repack` can be called with the `-b` switch to
> explicitly generate bitmap indexes if you are experimenting
> and don't want them on all the time.
>
> Signed-off-by: Vicent Marti <tanoku@xxxxxxxxx>
> Signed-off-by: Jeff King <peff@xxxxxxxx>

Reviewed-by: Thomas Rast <tr@xxxxxxxxxxxxx>

-- 
Thomas Rast
tr@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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