Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix diff preview and edit for files with a ']' character in their name (
#354) Our sed command for removing the short status (e.g. [M]) from gits output to extract the file name with _forgit_diff matched until the last ']' character in the line due to sed being greedy. This created issues with file names that contain a ']' character. To fix this, I made sure that only the short status is removed by sed, independently of the file name.
- Loading branch information