Public bug reported:

git diff can be run on two regular files, which are not under git source 
control. However, pressing Tab to auto-complete filenames gives an error 
"fatal: Not a git repository".
I believe, bash-completion is the culprit. It should not be overly smart and 
simply try to complete the filenames.
touch oldfile newfile
git diff oldfile newfile
# versus
git diff old<Tab>

** Affects: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1606576

Title:
  git diff may be run outside of git tree

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1606576/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to