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 18:04:06 +0300 Message-ID: <42510ba9-1235-7180-af36-2d9de24835b4@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> <7b247aac-28bd-94c1-2546-524edde9b781@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="80142"; 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 17:09:56 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 1jZFUi-000Kmb-Ix for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 17:09:56 +0200 Original-Received: from localhost ([::1]:37212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFUh-0001Ms-GO for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 11:09:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZFPA-000085-In for emacs-devel@gnu.org; Thu, 14 May 2020 11:04:12 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:42308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZFP9-0007Vb-BG for emacs-devel@gnu.org; Thu, 14 May 2020 11:04:12 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id s8so4570230wrt.9 for ; Thu, 14 May 2020 08:04:10 -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=fBCobmcro5oOvT2j3wMEknxV0mv8iXjOHPucy1GQX1c=; b=Mj2AOWDj9QNKAyQHXVBgWZSMHYrf26BIqLX6X0qgmiEUmU1wZqVZhRAc/TeycMOqPl 3eMM09KzEo2UT99cGftGrgws0XOgTHw/GtlfoPGe+jSaqYeSDgcRdHoe8XtgzYLluZ55 ik+qYGZbFmWr5nMOVe43yHexk7zFHLvpBm2pVvIGRbkrfTlblY8LjvZ/fSP8ZJ8ZITkv MSTdMNXVF+evhT/1oEaeyI5ov+cf2FfnjZJmbNZtZEQAjPKQ8aBwmkhYp1qFV7X3RW+A 6NPzzFPkybDbUCVTAVYZiWWUms+0bAKWgEfVbAHEkVFN8EInrH7aRkOLLLwCV2kOiB4H GbMQ== 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=fBCobmcro5oOvT2j3wMEknxV0mv8iXjOHPucy1GQX1c=; b=n1KU6o9n86WtLYNL2HLuDA0gKzR6daUoNSDFxAqKnfkK0RY+P2QUQ7E9SwKn0OPhb/ f7ZN5utLw8h1Np+GlnLsbSnn9t+M5M6UtjE8DfYTz5p1d1Tw+GUuwTIbcQmasS74Oe42 NqmmyGiE0IF9sFtI0+XxIqAxzzaBGB6NOX6eO71kJlp0MNBk6SRCR2PBge9KQXkZdb/x hCTiJNLcqBaS5FbuSRMmW+7kZo6yD9UnX5lGCv6XXoRQBXRjWzRyMm/9Esrlt2Xto3Qp vHULaN+Xea6EbNVKnBk5660OHmyKA+H2TicFcn4Sy1XlQh1qpMaRP6m0AoLvl+QGchQu SS8g== X-Gm-Message-State: AOAM530c4BtxyY64JoPISGDG+PLxgEHpla1ZkS6n/hzPNYMBsycTeB2p /nQ/70lxfRWh8ALOCD9/xDZkXIQV X-Google-Smtp-Source: ABdhPJztbyxB5eH1ETABws/zd7xIrazvp20Xzc4AMgqDMMhlGXVcneZiUpxhyfLx/AlJLn/oU+wMuQ== X-Received: by 2002:adf:ed06:: with SMTP id a6mr5852630wro.8.1589468649446; Thu, 14 May 2020 08:04:09 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id p7sm4822498wmg.38.2020.05.14.08.04.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 May 2020 08:04:08 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42a.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:250249 Archived-At: On 14.05.2020 05:55, Stefan Monnier wrote: >> 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? > > Depends if the Git worktrees within their $HOME use the same repository > as the one used for $HOME. Not 'git worktrees' (to be clear), just random other work directories, for work/hobby/etc projects. > But we could try and be more strict in our definition of what is > a "submodule" for the purpose of finding the project root. And it's > likely that in the end we should let the user control what happens, > because depending on the specific use of submodules, I can imagine cases > where the user would want to consider the project's root to be that of > the submodule rather than that of the containing Git tree. Yes, a user option (inrended for dir-locals) is likely in order, but users such as described above would have to set it in _all_ of their work directories.