Re: Spam: Re: git branch performance problem?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Lars Hjemli <hjemli@...>
Cc: J. Bruce Fields <bfields@...>, <hanwen@...>, <git@...>
Date: Wednesday, October 10, 2007 - 6:55 pm

Lars Hjemli wrote:

No, this is not the case, unless something has changed very recently
in git-gc or git-repack. Even git-gc with no arguments is unsafe if
the repository being gc'ed is listed in another's alternates.

git-gc calls repack with -a and -d. which causes a new pack to be
created which only contains the objects required by the local repository.
The other packs are then deleted. Objects contained in those packs and
required by a "sharing" repository (one using the alternates mechanism)
will be deleted if the local repository no longer references them.

Maybe git-gc should make use of repack's new -A option by default and
only use -a (and not -A) when --prune is specified...

-brandon

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git branch performance problem?, Han-Wen Nienhuys, (Wed Oct 10, 4:22 pm)
Re: git branch performance problem?, Lars Hjemli, (Wed Oct 10, 4:44 pm)
Re: git branch performance problem?, Han-Wen Nienhuys, (Wed Oct 10, 5:17 pm)
Re: git branch performance problem?, Han-Wen Nienhuys, (Wed Oct 10, 5:24 pm)
[PATCH] git-branch: only traverse the requested refs, Lars Hjemli, (Wed Oct 10, 5:54 pm)
Re: [PATCH] git-branch: only traverse the requested refs, Johannes Schindelin, (Wed Oct 10, 7:00 pm)
Re: git branch performance problem?, Lars Hjemli, (Wed Oct 10, 5:34 pm)
Re: git branch performance problem?, Han-Wen Nienhuys, (Wed Oct 10, 5:30 pm)
Re: git branch performance problem?, Linus Torvalds, (Wed Oct 10, 7:39 pm)
Re: git branch performance problem?, Han-Wen Nienhuys, (Wed Oct 10, 10:26 pm)
Re: git branch performance problem?, Salikh Zakirov, (Fri Oct 12, 1:19 pm)
Re: git branch performance problem?, Linus Torvalds, (Thu Oct 11, 11:16 am)
Re: git branch performance problem?, Johannes Schindelin, (Thu Oct 11, 6:46 am)
Re: git branch performance problem?, Han-Wen Nienhuys, (Thu Oct 11, 9:11 am)
Re: git branch performance problem?, Alex Riesen, (Thu Oct 11, 2:41 am)
Re: git branch performance problem?, J. Bruce Fields, (Wed Oct 10, 5:39 pm)
Re: git branch performance problem?, Lars Hjemli, (Wed Oct 10, 5:45 pm)
Re: Spam: Re: git branch performance problem?, Brandon Casey, (Wed Oct 10, 6:55 pm)
Re: Spam: Re: git branch performance problem?, Mike Ralphson, (Thu Oct 11, 5:41 am)
Re: Spam: Re: git branch performance problem?, Johannes Schindelin, (Thu Oct 11, 6:58 am)
Re: git branch performance problem?, Han-Wen Nienhuys, (Wed Oct 10, 5:49 pm)
Re: git branch performance problem?, Johannes Schindelin, (Wed Oct 10, 5:53 pm)
Re: git branch performance problem?, J. Bruce Fields, (Wed Oct 10, 5:53 pm)
Re: git branch performance problem?, Han-Wen Nienhuys, (Wed Oct 10, 6:01 pm)