emacs-devel
[Top][All Lists]
Advanced

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

Re: project.el: git submodules?


From: Dmitry Gutov
Subject: Re: project.el: git submodules?
Date: Thu, 14 May 2020 23:13:48 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 14.05.2020 23:01, Stefan Monnier wrote:
+                                    (or
+                                     (let ((default-directory parent))
+                                       (vc-root-dir))
+                                     root)))))

I'm not familiar enough with this code to understand what it does: which
part tests "is it a submodule"?

The removed part.

Or alternatively, which part compares
the location of the two repositories?

The part quoted above. If the parent directory of the root of the current Git worktree belongs to a VC worktree (vc-root-dir returns non-nil), use that worktree's root. Otherwise, use the root of the current repo.



reply via email to

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