Re: master 1d91d9b717d: project-vc-dir: Use truenames
João Távora <[email protected]>
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <CALDnm51ZS0NgjjcfVh3rFZY6DjeiKSYpT-CUz9fhHgcah4Rzig@mail.gmail.com> |
Hi Dmitry, On Mon, Jul 13, 2026 at 5:46 AM Dmitry Gutov <[email protected]> wrote: > >> It depends on whether the symlink is to the repository root, or to a> >> plain subdirectory of the target repository. > >> > >> So basically we try to reproduce what visiting file buffers with VC > >> already does. > > Maybe we should have an option to make it more like João's workflow? > > WDYT? > > Could you or him point to a specific scenario/step which doesn't match > their preferences when my patch is applied? I've just tried your patch. I didn't give it much testing, but it seems to work exactly like I think it should. I.e. C-x v d RET when visiting any file in a symlinked repo seems to behave exactly like C-x p v. I guess that's because dir defaults to 'vc-root-dir's value, which is also good. I thought your earlier reply about vc-responsible-backend meant that if I gave it a subdir it would revert to following the link, which would again seem like a mistake to me. But I see that even if I give it a subdir, vc-responsible-backend still returns 'Git. So everything's fine from my side. I'll still use C-x p v since I have muscle memory for that, but at least one of my new colleagues who's somehow still using Emacs after 2 months (the poor soul, now even wants a proper keyboard) can start using vc confidently. João -- João Távora