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

git binary patch explore #53

Merged
merged 3 commits into from
Jan 28, 2023
Merged

git binary patch explore #53

merged 3 commits into from
Jan 28, 2023

Conversation

babenek
Copy link
Contributor

@babenek babenek commented Jan 4, 2023

The pull request fixes #4 partially.
Suppose, we have diff only (without original repo), then only literal type can be valuable.

@babenek babenek marked this pull request as ready for review January 8, 2023 12:20
@babenek babenek marked this pull request as draft January 8, 2023 13:04
@babenek babenek marked this pull request as ready for review January 8, 2023 13:24
@@ -248,7 +256,6 @@ def parse_git_header(text):
# if we go through all of the text without finding our normal info,
# use the cmd if available
if cmd_old_path and cmd_new_path and old_version and new_version:
print("returning from dumb path")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

@@ -914,3 +921,87 @@ def parse_rcs_ed_diff(text):
return changes

return None


def parse_binary_diff(text):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if this only handles git files, it should be named parse_git_binary_diff. I can change this myself before release, or you can if you get back to it before I merge.

@cscorley
Copy link
Owner

@babenek thanks! Is this ready to merge? I just want to make sure since the title contains "explore" and the branch is named "tmp" 😄

@babenek
Copy link
Contributor Author

babenek commented Jan 23, 2023

@cscorley,
Yes, the pull request is ready. Sorry for confused branch name :)

@babenek babenek requested a review from cscorley January 23, 2023 06:12
@cscorley
Copy link
Owner

cscorley commented Jan 28, 2023

Thanks! As always, your contributions are very appreciated.

@cscorley cscorley merged commit 0098018 into cscorley:main Jan 28, 2023
@babenek babenek deleted the tmp branch January 29, 2023 04:27
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

Successfully merging this pull request may close these issues.

Parse full patches using git diff --binary
2 participants