forked from dandavison/delta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix filenames with spaces (dandavison#643)
* Fix parsing of file path from diff line Fixes dandavison#625 * Parse diff line only if needed * Add test of diff of filenames with spaces * Strip trailing tab inserted by git when file path contains space git appears to add a trailing tab character when the file name contains a space: $ git diff --no-index b.file 01g\ -\ Text | cat -A diff·--git·a/b.file·b/01g·-·Text␊ index·e69de29..d00491f·100644␊ ---·a/b.file␊ +++·b/01g·-·Text├──┤␊ @@·-0,0·+1·@@␊ +1␊
- Loading branch information
1 parent
4cdc6a1
commit ac2873d
Showing
3 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters