[Top][All Lists]

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

Re: project.el: git submodules?

From: Michael Welsh Duggan
Subject: Re: project.el: git submodules?
Date: Tue, 12 May 2020 16:51:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Dmitry Gutov <address@hidden> writes:

> On 12.05.2020 21:05, Michael Welsh Duggan wrote:
>> It's not only submodules, though.  Git worktrees also just use a .git
>> file.
> I'm not an expert, and you can suggest better logic.

git rev-parse --show-superproject-working-tree

This will return an empty string if CWD is not a submodule.


Michael Welsh Duggan

reply via email to

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