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

Handle git merge commits #3

Open
matthijskooijman opened this issue Nov 28, 2024 · 0 comments
Open

Handle git merge commits #3

matthijskooijman opened this issue Nov 28, 2024 · 0 comments

Comments

@matthijskooijman
Copy link
Owner

Currently this tool requires a linear history, git merges confuse the line analyzer and cause errors. By tracking the parents of a merge commit (and also adapting the diff format for merges which has multiple added/deleted/context columns), it should be possible to do better analysis even with merges.

While coming back to my code this week after not looking at it for years, I found a pile of commits and some uncomitted code that intends to handle merge commits. I am not sure if it is actually complete, but on a quick test it does seem to work (no errors, no clue if the output is correct).

I've pushed all the code out to the https://github.com/matthijskooijman/patchdeps/tree/wip-handle-merge-commits branch, in case anyone is interested in this feature (might be me if I ever need this tool again, but not now. Maybe @pmhahn?). This branch might need some careful rebasing, since it was made (way before) the refactoring in #2.

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