emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: project.el: git submodules?


From: Stefan Monnier
Subject: Re: project.el: git submodules?
Date: Tue, 12 May 2020 17:04:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Perhaps you could suggest an additional test to determine whether
> a directory is a submodule, then?

Indeed, technically, a submodule is implemented in the same way as a worktree.
And in `elpa.git`, we use worktrees to implement our own notion
of submodule.

I get the impression that distinguishing the two amounts to guessing the
intent behind a particular directory layout, so there will never be
a 100% correct answer.

But I guess a first approximation is to check "is there another .git
somewhere further up the directory tree and if so, does it use
the same repository as the current .git does?".


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]