Re: reflogs and worktrees?
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jul 5, 2016, 15:59 UTC
- Message-ID
- <CACsJy8A=_0RfMsDkqyeyro3Xw3NbS4qU0bkVAkapky52jphH7w@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.2.20.1607051704490.8378@virtualbox>
On Tue, Jul 5, 2016 at 5:07 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Hi Duy, > > ever since I started working extensively with worktrees, I end up with > these funny gc problems, like broken links and stale reflogs.
Yeah we have problem with gc not traversing all worktree refs. I had something that could fix it temporarily [1] but the decision was to wait for refs code to support new "worktree storage" so that we can walk worktree refs properly, then fix gc [2]. We should get pretty close to that point after [3] lands.
[1] http://thread.gmane.org/gmane.comp.version-control.git/295961/focus=296076 [2] http://thread.gmane.org/gmane.comp.version-control.git/295961/focus=296219 [3] http://thread.gmane.org/gmane.comp.version-control.git/296409
> Is it maybe possible that the reflogs (which are per-worktree now) are not > traversed completely when gc'ing (which is *not* per-worktree)?
-- Duy