-
Notifications
You must be signed in to change notification settings - Fork 71
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
high-level description of algorithm #8
Comments
the best description atm is probably here https://github.com/tummychow/git-scripts/blob/master/git-absorb.md#interlude-patch-theory but i acknowledge that there should probably be something in this specific repo, and it should probably be refreshed a bit (eg my old implementation of hunk commutation was completely wrong) |
Oh cool thanks! Yes, that file definitely belongs in this repository. So you are going more down the darcs route than the
but it has been on my mind for a long time to look deeper into patch theory:
It would be cool to get your thoughts on this. I expect there are pros and cons of both approaches. I expect that pairwise testing of commutativity is probably more efficient than the |
I also thought that it would help to describe how the tool work, so that users can form a mental model and not be surprised when using it. It went to read this issue and the long explanation at https://github.com/tummychow/git-scripts/blob/master/git-absorb.md#interlude-patch-theory, and proposed a short summary in the README at #41. |
It would be nice if the algorithm was documented at a high-level, not just so that people can more easily contribute to the code, but also so that users can be aware of any particular strengths or caveats. For example it seems that it doesn't use libgit2's
blame
APIs - is that right? In which case, does it just iterate through theN
most recent commits (whereN
seems to default to 10) looking for commits which change the same lines altered by the fixup hunks?The text was updated successfully, but these errors were encountered: