Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

parsePatch adds double quotes and back slashes to file names in Windows #171

Closed
ramya-rao-a opened this issue Mar 16, 2017 · 0 comments
Closed

Comments

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Mar 16, 2017

The output of the diff tool that is shipped as part of Git tools for windows or Cygwin contains double quotes around the file name as well as escaped back slashes

with-quotes

When such a diff output is parsed using parsePatch method, the double quotes and double back slashes remain in the filename while forming the IUniDiff objects resulting in invalid file path

To compare, the diff output from GnuWin32 has the output in the below format

without-quotes

@ramya-rao-a ramya-rao-a changed the title parsePatch adds extra double quotes to file names parsePatch adds double quotes and back slashes to file names in Windows Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant