When trying to add a file that has a backslash in its name, the preview will not be shown correctly. Instead the preview shows something like:
error: Could not access 'file\\.txt'
Steps to reproduce
- Create a file with a backslash in its name
echo test > file\\.txt
- Try to stage the file using
git forgit add
- Observe that the preview shows an error message instead of the files content.