* 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
* git diff autocomplete
[not found] ` <CADSGPzU6+AdMtrEnc98SHASmcmxGsj52Y99Dd5zvkOeRqWS-jQ@mail.gmail.com>
@ 2019-08-26 15:48 ` Dhaval Patel
2019-08-26 17:09 ` Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Dhaval Patel @ 2019-08-26 15:48 UTC (permalink / raw)
To: git
If it is only about files and revisions both being handled by git
diff, would it not ne possible to do something like this?
For files
git diff -f a[PRESS TAB]
For revisions
git diff -r a[PRESS TAB]
Some sort of flag which says we are handling files or revisions.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git diff autocomplete
2019-08-26 15:48 ` Dhaval Patel
@ 2019-08-26 17:09 ` Andreas Schwab
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2019-08-26 17:09 UTC (permalink / raw)
To: Dhaval Patel; +Cc: git
On Aug 26 2019, Dhaval Patel <drdhaval2785@gmail•com> wrote:
> If it is only about files and revisions both being handled by git
> diff, would it not ne possible to do something like this?
>
> For files
>
> git diff -f a[PRESS TAB]
>
> For revisions
>
> git diff -r a[PRESS TAB]
>
> Some sort of flag which says we are handling files or revisions.
That already exists, it is spelt `--'.
Andreas.
--
Andreas Schwab, schwab@linux-m68k•org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox