From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: project.el: git submodules? Date: Tue, 12 May 2020 16:45:02 -0400 Message-ID: <87v9l0nar5.fsf@md5i.com> References: <875zd1ni5i.fsf@md5i.com> <55769244-c84c-dff0-4427-9ff688f81af5@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="8198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Welsh Duggan , emacs-devel@gnu.org, Gary Oberbrunner , Dmitry Gutov To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 12 22:46:39 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYbnS-0001xy-Ca for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 22:46:38 +0200 Original-Received: from localhost ([::1]:48974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYbnR-0003u0-9b for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 16:46:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYbm3-0003LP-SQ for emacs-devel@gnu.org; Tue, 12 May 2020 16:45:11 -0400 Original-Received: from md5i.com ([75.151.244.229]:36520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYbm2-0003Pn-SL for emacs-devel@gnu.org; Tue, 12 May 2020 16:45:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=vFHeSEUR9PTr3SLC4SRMMSQJNayou9rgfFnp0ZjHVPk=; b=gtxFWfheDdw5BiSnXOe7aNeVEf ZUCJRJ3aGi8ssN0c9rxZGZqEYeDTtHTxZeNErBHGFWwz/geBOJGTNpAM0UJYaQopq8kA1ATYiLDsB zd3iqeoTRUp575FnhnJO59f3t; Original-Received: from md5i by md5i.com with local (Exim 4.93) (envelope-from ) id 1jYblu-000OBW-Gg; Tue, 12 May 2020 16:45:02 -0400 In-Reply-To: (Stefan Monnier's message of "Tue, 12 May 2020 15:36:49 -0400") Received-SPF: pass client-ip=75.151.244.229; envelope-from=mwd@md5i.com; helo=md5i.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 16:45:09 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250040 Archived-At: Stefan Monnier writes: >> FWIW, the examples of git worktrees on my machine all include a ".git/" >> directory. It's just that some of its contents are symbolic links. > > Hmm... are you sure these are Git worktrees? > Maybe they're "poor man's git-worktrees" created by the old > `git-new-workdir` hack which has been made obsolete by the "new" `git > worktree` feature. Pretty sure. /tmp/$ git --version /tmp$ mkdir git-test /tmp$ cd git-test /tmp/git-test$ mkdir repo /tmp/git-test$ cd repo /tmp/git-test/repo$ git init Initialized empty Git repository in /tmp/git-test/repo/.git/ /tmp/git-test/repo$ echo "Test file" > repo /tmp/git-test/repo$ git add repo /tmp/git-test/repo$ git commit -m "Initial commit." [master (root-commit) 544fba2] Initial commit. 1 file changed, 1 insertion(+) create mode 100644 repo /tmp/git-test/repo$ git worktree add ../worktree Preparing worktree (new branch 'worktree') HEAD is now at 544fba2 Initial commit. /tmp/git-test/repo$ cd ../worktree/ /tmp/git-test/worktree$ ls -la .git -rw-r--r-- 1 md5i md5i 51 May 12 16:42 .git /tmp/git-test/worktree$ cat .git gitdir: /tmp/git-test/repo/.git/worktrees/worktree -- Michael Welsh Duggan (md5i@md5i.com)