From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: project.el: git submodules? Date: Thu, 14 May 2020 03:32:55 +0300 Message-ID: <7b247aac-28bd-94c1-2546-524edde9b781@yandex.ru> References: <875zd1ni5i.fsf@md5i.com> <55769244-c84c-dff0-4427-9ff688f81af5@yandex.ru> <87v9l0nar5.fsf@md5i.com> <95a8c285-125f-afda-b1bc-d1c0452e5c31@yandex.ru> <1bc2052e-b26b-1f3d-f78c-a22112861f27@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="123659"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: Michael Welsh Duggan , Gary Oberbrunner , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 14 02:33:52 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 1jZ1ou-000W4T-5M for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 02:33:52 +0200 Original-Received: from localhost ([::1]:46210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZ1os-0007DG-Vy for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 20:33:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ1o4-0006CD-UC for emacs-devel@gnu.org; Wed, 13 May 2020 20:33:00 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:36405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZ1o3-0003Lr-Pj for emacs-devel@gnu.org; Wed, 13 May 2020 20:33:00 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id w19so15773732wmc.1 for ; Wed, 13 May 2020 17:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CE8BHXkK8kcAkfwdUKprOzsHLvRdNK67pfAY1csilGU=; b=jBN81L0+wf2RfkqpHJLfQ7kl7EvC9HD8Geiw8rmmY0zaV8hsXMMvjAepuJl/y6DWS0 gs/SAPtBAcQ1OI/57bdCjlQ1O73/iFBGhjzLFi0PVEMajCrz0C+qQX8p0BzPQ2EmiSDS V/26NSgD12YQ3QKrWTgdIlHk9spQPbCo7Yqy/09EcLdheOHa1PxoMjZg2HPOgxwfXtss KJDyuiga+D21CtO/lhYArPOtnmXWb86Uf3SXhyrw8Uz5H8JO1LhQvmXMInve1FixEVx/ 31AyzgZYB4F+vB0YM+d6FP/D9f5SJXlUCDaN0CXtcTZmaQNDqA+7+tTa/xEhc4JCdI2+ tNWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CE8BHXkK8kcAkfwdUKprOzsHLvRdNK67pfAY1csilGU=; b=jP/NbeGoQHV/Wel0vUCO8sLbvYzrl4Z5ibGrudMJiaV5B7V4Tixqj4aYGQc7OPEVG8 EyM5oCr2Bs8hBk2ZVHZPwugOY79cSRvcLdD5uMGo9yiwWAvbI8S6PTpie2pDau7IbUy4 Y60kJUxiQMQRJLhGdnXjXSfkPLjrOjHWlaU4A99SK9CgB/OV1ihmbJvbj96r4GvArh6K QirScWK8Dddqp1GjuTH4Ur0oWeZPjXizRLWKCIqRS2oLYCCNuO/6D7HDJcZhnqpetcfU 45ifgAwq+BoO7wSxdkcntmudNhsmZKqhJTHFMGlepY9XVbq+WjuCgy+0Az05vldhNc3X nN5w== X-Gm-Message-State: AGi0PuaThX/vUSD6lGrN4YOkyQtcbuX7+6LNfGZintuyznlcN2zYInQz DP+S/gnQQe6VPZIL8eL5l/UTVNc/ X-Google-Smtp-Source: APiQypIF4htAu9pHajv5+DTJt2a6o7JTtQkzEPbJ2Qn4O6Yn3PSK2VJd+JiLsLCNGgvLdwsDnjOrlA== X-Received: by 2002:a1c:e157:: with SMTP id y84mr19725545wmg.15.1589416377875; Wed, 13 May 2020 17:32:57 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id f5sm1626430wro.18.2020.05.13.17.32.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2020 17:32:56 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=raaahh@gmail.com; helo=mail-wm1-x331.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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:250175 Archived-At: On 13.05.2020 00:09, Stefan Monnier wrote: >>> 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?". >> That seems to imply traversing up the directory tree until '/' in some >> cases. Right? > Yes (which is no worse than what we do when there's no .git at all;-) Hmm, good point. I even have a patch, but here's another thought: wouldn't this mistakenly punish people who keep their $HOME as a Git repository to sync between machines? Any other repositories they are working on are likely inside.