tummychow / git-absorb

git commit --fixup, but automatic
https://crates.io/crates/git-absorb
BSD 3-Clause "New" or "Revised" License
3.38k stars 58 forks source link

Activate simplify_first_parent in revwalk #30

Closed betwo closed 3 years ago

betwo commented 3 years ago

This PR enables simplify_first_parent for the enumeration of the git history.

While working in a huge repository, I observed that the revwalk through the git history can take a while. Since the last merge commit is used as the termination criterion in the loop below, I think the case where revwalk has to push more than one parent commit can safely be ignored.

@tummychow, do you see any problems with enabling simplify_first_parent?

tummychow commented 3 years ago

thanks, this has been cut to v0.6.4