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.
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
2 matches
Mail list logo