-
Notifications
You must be signed in to change notification settings - Fork 74
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
Handle variations of git diff mnemonic prefixes #81
Comments
Here is another similar issue since unidiff 0.7.1 - contents generated by diff --git file1 file1
deleted file mode 100644
index 42f90fd..0000000
--- file1
+++ /dev/null
@@ -1,3 +0,0 @@
-line11
-line12
-line13
diff --git file2 file2
index c337bf1..1cb02b9 100644
--- file2
+++ file2
@@ -4,0 +5,3 @@ line24
+line24n
+line24n2
+line24n3
@@ -15,0 +19,3 @@ line215
+line215n
+line215n2
+line215n3
diff --git file3 file3
new file mode 100644
index 0000000..632e269
--- /dev/null
+++ file3
@@ -0,0 +1,3 @@
+line31
+line32
+line33 (extracted from https://github.com/buildbot/buildbot/blob/v3.4.0/master/buildbot/test/unit/test_steps_git_diffinfo.py#L94-L123) an exception is thrown:
The same diff can be parsed with unidiff 0.7.0. |
Hmm... I see the problem, will try to work in a fix in a bit. |
Right now, code assumes
a/
andb/
prefixes for the filenames being compared.Those prefixes could be different depending on:
http://git-scm.com/docs/diff-config#Documentation/diff-config.txt-diffmnemonicPrefix
The text was updated successfully, but these errors were encountered: