* git diff autocomplete
@ 2019-08-18 2:44 Dhaval Patel
2019-08-18 2:47 ` Santiago Torres Arias
0 siblings, 1 reply; 4+ messages in thread
From: Dhaval Patel @ 2019-08-18 2:44 UTC (permalink / raw)
To: git
How to reproduce
git init
touch abc.txt
touch abd.txt
git add a*
git commit -m 'first commit'
echo 'hello' > abc.txt
git add a[PRESS TAB]
(This will autocomplete 'git add abc.txt')
git diff a[PRESS TAB]
(This will not give 'git diff abc.txt')
Suggested feature -
when I press tab, git diff should autocomplete just like git add.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git diff autocomplete
2019-08-18 2:44 git diff autocomplete Dhaval Patel
@ 2019-08-18 2:47 ` Santiago Torres Arias
[not found] ` <CADSGPzU6+AdMtrEnc98SHASmcmxGsj52Y99Dd5zvkOeRqWS-jQ@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Santiago Torres Arias @ 2019-08-18 2:47 UTC (permalink / raw)
To: Dhaval Patel; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
On Sun, Aug 18, 2019 at 08:14:15AM +0530, Dhaval Patel wrote:
> How to reproduce
>
> [snip]
> Suggested feature -
>
> when I press tab, git diff should autocomplete just like git add.
I think this is somewhat harder of a usecase, as git add generally takes
paths and diff can compare revisions *and* paths. I see that if I do
git diff -- [TAB]
I get all the paths as an autocomplete option, which I think is desired
behavior.
Thanks,
-Santiago.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-26 17:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-18 2:44 git diff autocomplete Dhaval Patel
2019-08-18 2:47 ` Santiago Torres Arias
[not found] ` <CADSGPzU6+AdMtrEnc98SHASmcmxGsj52Y99Dd5zvkOeRqWS-jQ@mail.gmail.com>
2019-08-26 15:48 ` Dhaval Patel
2019-08-26 17:09 ` Andreas Schwab
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).