Re: git diff autocomplete

2019-08-26 Thread Andreas Schwab
On Aug 26 2019, Dhaval Patel 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 han

git diff autocomplete

2019-08-26 Thread Dhaval Patel
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.

Re: git diff autocomplete

2019-08-17 Thread Santiago Torres Arias
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 *a

git diff autocomplete

2019-08-17 Thread Dhaval Patel
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