cscorley / whatthepatch

What The Patch!? -- A Python patch parsing library
MIT License
64 stars 24 forks source link

No way that a file has been created or deleted #17

Closed calixteman closed 4 years ago

calixteman commented 7 years ago

With the following patch: diff --git a/titi.txt b/titi.txt new file mode 100644 --- /dev/null +++ b/titi.txt @@ -0,0 +1,1 @@ +hello world

the parse_patch output doesn't give any information about the newly created file (the same for a deleted file)

cscorley commented 5 years ago

Is this still an issue? We have a test case that passes for this: https://github.com/cscorley/whatthepatch/blob/39c8edd34ef30d409d367ffc548d0f0fc5545a18/tests/test_patch.py#L512 https://github.com/cscorley/whatthepatch/blob/39c8edd34ef30d409d367ffc548d0f0fc5545a18/tests/casefiles/git-oneline-add.diff

cscorley commented 4 years ago

Closing, no response