From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23358 invoked from network); 12 Sep 2023 19:33:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Sep 2023 19:33:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1694547220; b=rDdYriCdVCJbPejVqinADHaVysW4brwMx1SwpC/Xk/5qRWVrvRU1hSCVcYYsIwAXBSLy5N8MEg mVvWjee9eMms0vuBHoJOoaTaSbedK0QVyfk44E7Suu+gsT7vccQkKaOdP60J9jH2G9MBptU8Zd w3ffyudo5rX4+n9L5hLXWp6bDNRePc3AysAp13sIYllH4tfOEVfAsX3QYef81cZGWCZRhcct11 EVjoPtZktEHp7JtlHfEyKc/5eO0aLZ3KYrlmML6ZwPUt64gYkI40K+21cM/dHcyZrqjaYMJsVQ hY2NbLsQgfjwHBnBDn5jMH2eizLKYF18bO0tnRjjMCFlCg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f181.google.com) smtp.remote-ip=209.85.208.181; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1694547220; bh=p88MFvQhIZZDNy7iCQvZ6vew6cHFWTcedm8djaWYJzg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=BzNrg7dCNn7PhhxhxaBq2+gw0uiSwk+lXX6fsqhqrQtkqUrrJF6B9ORLbLjhk1650dgiPtdt// I8bkoAWN+VyhAmns8iPrUDtSXbVf4fggtvdtMg/QIyB5n8TtTgXl4W3vGQ9nnumaGx1pDyXzc2 fmwMNO/GZpQHfavkBayFVg+nqhV4jw1IFpM+YYfmIwjRpdMsrgXJJ8hDGndkLW7XhlhVKktdY2 wfYMaiCF9oqTjgHHJpafgYk3YeE19+NMDkBCPP3ZhHegowEatokpX8bgLySqqjSLj02RWaXbL3 pIDzwG/c7WXr65Ejj012HGIBY0Ki12M3Y+L2aFyvij2shg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=BF3kXiH22h+mVgJVuFJ0RNDVmBTartISbFQypbJlA+8=; b=YJG8hpymnC+qCVc6r0DWuvrCaC sHFQxEdogdZw5uFJ+9b0XwFnTiubde2UpB7F0AE8PyH6CovaUJYw8b9QJwWKJCmPRswPZvRstzNzY CuTgJ7nn1AKTFuiZ0w+kKBRWsMygVmfGVE2EX9yvQXdslKAVWZfkh0n3h7ylMOki0rjT8oxLGHDu/ f6/Wbj5FwSMUh7Fr3jxZTjkX5VVzfaAX35pQJB6L4RdeepDRomvhmpUuhpgq8GfKSkhi5AMd++DyL /fL352EG2DwWzK06s0zSvBsBgpVL/MQVxW8M8GwDP/J4x1iGemlRTTbLjj8SRFaTB+EQfC4IlJMV0 VO8QkiQg==; Received: by zero.zsh.org with local id 1qg98l-00002Q-IL; Tue, 12 Sep 2023 19:33:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f181.google.com) smtp.remote-ip=209.85.208.181; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f181.google.com ([209.85.208.181]:49459) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qg98X-000Pj2-8C; Tue, 12 Sep 2023 19:33:25 +0000 Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so101522531fa.3 for ; Tue, 12 Sep 2023 12:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694547204; x=1695152004; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BF3kXiH22h+mVgJVuFJ0RNDVmBTartISbFQypbJlA+8=; b=odh+c9vCZoGZBuaKg8bf3cGdb909weiuHVZ9esBydOPNSGPm5/8acDWPFae6Dy758c 3pFVwCRZvsuv4a9nhZy/5EMyy4f10c20LHk9jU/Bn2EhC5LRfeTh9ix3m5VdD5ZDnxiu /g/I+sI4BjI3htl2zwgP82Ep1iVv+uEPQMWSNsU2pE2TshJAq1WHAvZf5Ivt+Am16yY4 jA1ifKMFWRodNWvjmvgrsX9//8dROfHfNeNkJwYGCJvBhJsn7Qfvn25/HNJ/p47/pt8W ETfPi0AmeALTFFDKwGjrzYiaWKrA62V+ZwvyUlCzzMQ9GqPGYPWxfD0AoLcKb/rCwums RnUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694547204; x=1695152004; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BF3kXiH22h+mVgJVuFJ0RNDVmBTartISbFQypbJlA+8=; b=Cyzev/1EcMV1MjbYAZZ0nn0RmZvW1tes2gMZuxwBrwGUptqXnkDY3taE5/oHKHwg3r tjdFWhqPzZyWiU9TT8CLDlDABVjjqJ7aWpGY7sDqqJ+SZS98bXp7Ur03u8CguTpH3cgH FdNuI015CcZZagWIT/S5VzF+My4Y37AdyO8UcgpPb4gOUZZTROnFR171/FsN6otgMxQj bG/L6HMtmIjCzg1K151zkiPnDn7gbVsUUq2hi8iuuXnj/tr4UmOfFAMnK7kCnXYV2BTN N22UX3g6PZrCFVuhjoEjctsq/Ey+QLFlZ90zq1lVD3tnnCF3u14NpjDJ/n+61X8YcmLN fiNQ== X-Gm-Message-State: AOJu0Yz7Tvge1ypd4mpkaXZaaw2VG1CzF6creIEvZ7sRTopOknPHyxcB 5P6BwdwvH3IDMXghf5bA5PHb1i5ggykbYoQeQ2EoNFsIfllxUw== X-Google-Smtp-Source: AGHT+IF1qARD+cqwz8fzvUs7gsYu5eCV9wSs59mUAnAm6UjH4q218oNyM4RNz+QWU7s/vXW2u/Sbz4TnKBe5IjCOVLI= X-Received: by 2002:a2e:a603:0:b0:2bc:f523:c88a with SMTP id v3-20020a2ea603000000b002bcf523c88amr555134ljp.1.1694547204262; Tue, 12 Sep 2023 12:33:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Tue, 12 Sep 2023 21:33:13 +0200 Message-ID: Subject: Re: [BUG]Filename autocompletion using git-bare repos (--git-dir=... --work-tree=...) To: eliasghafari Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52137 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Tue, Sep 12, 2023 at 9:25=E2=80=AFPM eliasghafari wrote: > > On 23/09/12 11:34AM, Roman Perepelitsa wrote: > > Given these two definitions that differ only in quotes: > > > > alias c1=3D"git --git-dir=3D$HOME/.local/share/dotfiles --work-tree= $HOME" > > alias c2=3D'git --git-dir=3D$HOME/.local/share/dotfiles --work-tree= $HOME' > > > > Can you confirm that the following two commands work as expected? > > > > c1 diff > > c2 diff > Yes they both work and give the info they're supposed to give. > > > Can you furthermore confirm that only the first of the following works > > as expected while the second does not? > > > > c1 diff > > c2 diff > Also yes c1 autocompletion works perfectly, while c2 doesn't. So there is indeed a bug in the git completer. I won't be debugging or fixing this but someone else on this list might. > For further info during my reading of the log produced by `config diff > ` I noticed a couple of things, which if you want to investigate > this, it might help you out. > Using this alias: 'git --git-dir=3D$HOME/.local/share/dotfiles --work-tre= e ~' > > +_git:64> local -x GIT_DIR=3D'$HOME/.local/share/dotfiles' Yep, that's the culprit. Everything else you mentioned below is as expected and not surprising. > Using this alias: 'git --git-dir=3D~/.local/share/dotfiles --work-tree ~' > > [...] the command doesn't work it gives this error: > warning: Not a git repository. Use --no-index to compare two paths outsid= e a working tree This is working as intended. The tilde isn't supposed to be expanded and it isn't. > And like I said 'git --git-dir ~/.local/share/dotfiles --work-tree ~' > both works with autocompletion and the command line. Of course. > One last thing with config=3D'git --git-dir ~/.local/share/dotfiles --wor= k-tree ~' > if I do `alias config` to show what the alias is set to, the output is > exactly the same as above config=3D... Right. This is as expected. > But with config=3D"git --git-dir=3D$HOME/.local/share/dotfiles --work-tre= e $HOME" > alias config outputs: > config=3D'git --git-dir=3D/home/elias/.local/share/dotfiles --work-tree /= home/elias' Also as expected. Roman.