zsh-workers
 help / color / mirror / code / Atom feed
From: 한현빈 <ironman466@naver.com>
To: <zsh-workers@zsh.org>
Subject: Git auto completion does not work for comparing 2 files from 2 different branches
Date: Fri, 30 Sep 2022 12:44:54 +0900	[thread overview]
Message-ID: <e1a89ecd7e40d2b418bff14c468b54db@cweb002.nm.nfra.io> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]

I compare 2 different files from git remote like this:
git diff origin/branch1:file.txt origin/branch2:file.txt
However, auto completion only works until this point: git diff origin/branch1:file.txt, pressing tab afterward does not bring me list of usable remotes, branches in the said remote, and files in the said branch, unlike first one in branch1, which auto completion works fine.
 
Steps to reproduce

Clone any repository with 2 or more branches
Try to get difference of 2 files using git diff origin/branch1:path/to/file origin/branch2:path/to/file
Observe that auto completion doesn't work for second one

OS is KDE Neon, 20.04
Terminal I used is Yakuake and Konsole
ZSH version is 5.8

I have attached video of me reproducing the issue.

From Hyun Bin, and thank you for your effort on this.

[-- Attachment #1.2: Type: text/html, Size: 1968 bytes --]

[-- Attachment #2: 192280070-55a2f509-b33f-4f84-ad3b-8fe63fb2e401.mp4 --]
[-- Type: video/mp4, Size: 2506086 bytes --]

             reply	other threads:[~2022-09-30  4:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-30  3:44 한현빈 [this message]
2022-10-01  0:54 ` Bart Schaefer
2022-10-01  3:54   ` [PATCH] " Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e1a89ecd7e40d2b418bff14c468b54db@cweb002.nm.nfra.io \
    --to=ironman466@naver.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).