hayd / pep8radius

PEP8 clean only the parts of the files touched since the last commit, a previous commit or (the merge-base of) a branch.
MIT License
183 stars 9 forks source link

rev should find last shared commit #54

Closed hayd closed 10 years ago

hayd commented 10 years ago

When I do pep8radius master --diff I almost always want to compare the last shared commit of master and the current_branch.

(At the moment it uses git diff master to get lines changed from the tip of master. I'm suggesting making a decision on whether to choose the/a branch-point to diff against, or at least have this as an option.)

See http://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git

Does this concept only makes sense in the rebase model, rather than merging? ...not sure whether something like this would make a good API...