andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.18k stars 59 forks source link

Relative path to deleted file is not working #96

Open carlolars opened 4 years ago

carlolars commented 4 years ago

Relative paths to files check if the file exist on the file system to determine if it is a path and not a RegEx. This is of course not working for deleted files, eg git checkout -- deleted\file.txt.

-- could be used to detect if the following arguments are paths, but the use of -- is not mandatory. Maybe it will work in most cases? (And is -- only used before paths???)