Re: [PATCH 13/16] repack: consider bitmaps when performing repacks

2013-06-25 Thread Vicent Martí
On Wed, Jun 26, 2013 at 1:00 AM, Junio C Hamano wrote: >> @@ -156,6 +156,11 @@ do >> fullbases="$fullbases pack-$name" >> chmod a-w "$PACKTMP-$name.pack" >> chmod a-w "$PACKTMP-$name.idx" >> + >> + test -f "$PACKTMP-$name.bitmap" && >> + chmod a-w "$PACKTMP-$name.bitmap"

Re: [PATCH 13/16] repack: consider bitmaps when performing repacks

2013-06-25 Thread Junio C Hamano
Vicent Marti writes: > @@ -156,6 +156,11 @@ do > fullbases="$fullbases pack-$name" > chmod a-w "$PACKTMP-$name.pack" > chmod a-w "$PACKTMP-$name.idx" > + > + test -f "$PACKTMP-$name.bitmap" && > + chmod a-w "$PACKTMP-$name.bitmap" && > + mv -f "$PACKTMP-$name.bitmap"

[PATCH 13/16] repack: consider bitmaps when performing repacks

2013-06-24 Thread Vicent Marti
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