From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id f15b4a51 for ; Tue, 26 Nov 2019 01:29:28 +0000 (UTC) Received: (qmail 29611 invoked by alias); 26 Nov 2019 01:29:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44939 Received: (qmail 1224 invoked by uid 1010); 26 Nov 2019 01:29:24 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f66.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25642. spamassassin: 3.4.2. Clear:RC:0(209.85.166.66):SA:0(-2.0/5.0):. Processed in 0.742356 secs); 26 Nov 2019 01:29:24 -0000 X-Envelope-From: mezin.alexander@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.66 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=yuZ+VGL2OtYl5SQMhQzTZ/TBQOKSa2Rwz3sPufKEJDk=; b=EZalN4NTgTkp3zZhmQO6jaA3QMQWHf3cCLSXZVKc40/4fM3YnD4+ztU3FGlvrLC3SB /tgKgFxrlL3fkuWQJHkXYdqVvMOiChBHoeynbfbMoXbwvPD3tLBvSjwtGDgVx5mSCp58 7U2cWD2muAKiEDiqyuk8J0nhTybEGLyXRG2MP7xTrbNa84PmUD2A86bkr+dAcqBDLB8+ Rz65DE2YjfJLmguTXbIyETU2e3cvV1bGZoH3sp9P/Zzv0qkxYCUKXOcDJrjT9PwF0yRF DG4R7OKpJ6lejoyWA7pS9LhTMEo0LWypfJeXPzuHCtrWsr5lhw++g4hWWl1I2QBg98UB iJMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=yuZ+VGL2OtYl5SQMhQzTZ/TBQOKSa2Rwz3sPufKEJDk=; b=jUZMQYJJbdBA8qgspSBhGl9Zz5bo0gRQV0wNU3hJ27x4qfDnqX7t4UyLNyqr7enWNO Yg8gOGZKID4cSXBV+IRo2toGe2l72JwrWNZlhDIvk1yoNNDMJxxaHKIcje/cV3Hz+IMe kEPhtBLPOAop2T72Tu+F4KwqhdjFsshf5zuxc4x2s5xC/YpqUB3fBxc+oXgKonkWE3w2 z7FasfWUU2RYMuAzedfgKgGPXsFNRtM3zNJ/hac6bY8jWi9ylu0XbWkxfAvlO0Y5cmnR 8tj1Jw3lLqEaqpBD4VwKU13yeFf9MWXvJ5hjTa2xRzeEm6uxJ9tPHEwBrmseTrb81zq0 0sbg== X-Gm-Message-State: APjAAAW5/+0dgI6czAGwbfFO259lEBiMPbPNXaHI6QwieHBU5dv2Wxh/ geEtO4KdbMqaJjoKjneb91VtN+ttQ4ltOWQl/Jk= X-Google-Smtp-Source: APXvYqyzs33ReXBJJ5+mS5ccpLf0Gbyz0wWWtTwFGAheljVzIifaWEi8NIfKCGsMd5z/7MB2mkDRs1x67d68XBefuAs= X-Received: by 2002:a6b:fd10:: with SMTP id c16mr25742351ioi.76.1574731731141; Mon, 25 Nov 2019 17:28:51 -0800 (PST) MIME-Version: 1.0 References: <20191123221443.279556-1-mezin.alexander@gmail.com> <20191123221443.279556-3-mezin.alexander@gmail.com> <20191125043525.lcxm532gi6hb7n53@tarpaulin.shahaf.local2> In-Reply-To: From: Aleksandr Mezin Date: Tue, 26 Nov 2019 07:28:40 +0600 Message-ID: Subject: Re: [PATCH 2/3] vcs_info/cvs: set vcs_comm[basedir] in VCS_INFO_detect_cvs To: Daniel Shahaf Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Nov 26, 2019 at 7:26 AM Aleksandr Mezin wrote: > > On Mon, Nov 25, 2019 at 2:17 PM Daniel Shahaf wr= ote: > > Two, as I pointed out in reply to an offlist response, the existence of > > $GIT_DIR and $GIT_WORK_TREE means that the two VCS's basedirs need not > > be in a parent dir =E2=80=93 subdir relationship with each other; they = can be > > /foo/bar and /foo/baz. > > How is it possible? > > in a git repository > > $ GIT_WORK_TREE=3D../other-dir git rev-parse --is-inside-work-tree > false > > Work tree root should be a parent of cwd, otherwise `rev-parse > --is-inside-work-tree` returns false -> git repository not detected. > And there is only one path from cwd to the root -> all parents of cwd > are parents or subdirs to each other. I meant "there is only one path from cwd to /" in the last sentence.