-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean-ignore: support utf-8 filenames found in .gitignore
If someone names files with emoji, and puts those files in their .gitignore, ensure we correctly parse and handle those files. Do so by passing -z to `git check-ignore`, so that we don't have to worry about weird quoting of special characters. Reported-by: Yufan Lou (@louy2 on github) Reported-by: Martin Ranieri (@maffinyep on github) Reported-by: Aral Balkan <[email protected]> Signed-off-by: Elijah Newren <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
feature done | ||
blob | ||
mark :1 | ||
data 8 | ||
initial | ||
|
||
blob | ||
mark :2 | ||
data 5 | ||
lock | ||
|
||
blob | ||
mark :3 | ||
data 11 | ||
*.bak | ||
🔒 | ||
|
||
reset refs/heads/master | ||
commit refs/heads/master | ||
mark :4 | ||
author Little O. Me <[email protected]> 1535228562 -0700 | ||
committer Little O. Me <[email protected]> 1535228562 -0700 | ||
data 10 | ||
My commit | ||
M 100644 :1 filename | ||
M 100644 :2 🔒 | ||
M 100644 :3 .gitignore | ||
|
||
done |