Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Robust filename parser #17

Closed
kit-ty-kate opened this issue May 7, 2024 · 0 comments · Fixed by #20
Closed

Robust filename parser #17

kit-ty-kate opened this issue May 7, 2024 · 0 comments · Fixed by #20

Comments

@kit-ty-kate
Copy link
Collaborator

Issue extracted from a discussion in #9 (comment)

Different implementations of diffs output different formats for the filename with spaces or special characters (such as backslashes, which are valid on Windows). For example with spaces:

  • GNU diff:
    --- "a b"	2024-04-02 13:32:43.427214939 +0100
    +++ "a c"	2024-04-02 13:32:34.520202398 +0100
    @@ -1 +0,0 @@
    -test
    
  • Git diff:
    diff --git a/a b b/a c
    index 039727e..e69de29 100644
    --- a/a b
    +++ b/a c
    @@ -1 +0,0 @@
    -test
    
  • Busybox diff:
    --- a b
    +++ a c
    @@ -1 +0,0 @@
    -test
    
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants