GNU bug report logs - #79024
31.0.50; Multiple working trees support for VC

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Tue, 15 Jul 2025 11:51:02 UTC

Severity: normal

Merged with 79104

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


Message #53 received at 79024 <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: Dmitry Gutov <dmitry <at> gutov.dev>, 79024 <at> debbugs.gnu.org
Subject: Re: bug#79024: 31.0.50; Multiple working trees support for VC
Date: Fri, 25 Jul 2025 16:14:45 +0100
Hello,

On Fri 25 Jul 2025 at 10:53am -04, Spencer Baugh wrote:

> True, using "git worktree list" to implement this is of course slow.
> But my suggested implementation would be to simply read .git (which is a
> file rather than a directory in git worktrees); then the performance
> should be much better (just one file read).

Thought about this while running an errand after writing to you :)

Unfortunately though there are git worktrees implemented where .git is a
symlink to the relevant directory under .git/ in the main working tree
(git-annex does this), and there is something called GIT_COMMON_DIR,
which I just learned about, which affects worktree resolution.

Reading git-worktree(1) and gitrepository-layout(5), there's a lot of
implementation detail, which might change and vary across Git versions,
to try to reproduce in vc-git.el.  Whereas 'git worktree list' is a
stable interface.

-- 
Sean Whitton




This bug report was last modified 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.