python-unidiff icon indicating copy to clipboard operation
python-unidiff copied to clipboard

Unified diff python parsing/metadata extraction library

Results 29 python-unidiff issues
Sort by recently updated
recently updated
newest added

I would like to see an additional data structure between PatchSet and PatchedFile which groups `PatchedFile`s and has it's own header information. This would fit the concept of commits in...

I have the contents of a diff file in a bytes object in Python 3. I tried feeding it to `PatchSet` but it complained: is_source_filename = RE_SOURCE_FILENAME.match(line) builtins.TypeError: cannot use...

I have a diff file in a string in memory, and I tried to do `unidiff.PatchSet(diff_contents)` but it failed. After investigating I realized that I need to do `unidiff.PatchSet(diff_contents.readlines())` to...

Here is a snippet from the diff file ``` +\373e(attlist (("ID" ID IMPLIED) ("LANG" CDATA IMPLIED) ("REMAP" CDATA IMPLIED) ("XREFL\ ABEL" CDATA IMPLIED) ("REVISIONFLAG" (name-token-group ("CHANGED" "ADDED" "DELETED" "OFF\ "))...

I'm going to need to support git format-patch on what I'm doing. If you want, I can work on the library directly so I can do something like ``` >patch...

"git diff --cached" produces file headers such as: ``` diff --git c/README.md i/README.md index cfe07c3..6d38cfe 100644 --- c/README.md +++ i/README.md ``` unidiff incorrectly considers this as a change to file...

Title pretty much says it. Could be put into the readme.

Hi I was looking to parse the results of this sort of thing ``` git merge --no-commit branch-which-will-conflict git diff --diff-filter=U > report.txt ``` There is also a diff3 format...