zsh-workers
 help / color / mirror / code / Atom feed
* Git auto completion does not work for comparing 2 files from 2 different branches
@ 2022-09-30  3:44 한현빈
  2022-10-01  0:54 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: 한현빈 @ 2022-09-30  3:44 UTC (permalink / raw)
  To: zsh-workers


[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-01  3:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-30  3:44 Git auto completion does not work for comparing 2 files from 2 different branches 한현빈
2022-10-01  0:54 ` Bart Schaefer
2022-10-01  3:54   ` [PATCH] " Bart Schaefer

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).