improved heuristic for --upstream-branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-buildpackage (Debian) |
Fix Released
|
Unknown
|
|||
git-buildpackage (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: git-buildpackage
the current default for gbp and friends is to use HEAD of the upstream branch for --upstream-branch. Thinking about bug 615212, I felt that gbp could do much better than this. Consider the very simple commit graph in http://
I think gbp should the find the "highest" common ancestor on the upstream branch and use that for --upstream-branch. I'm sure there is a ready-made, easy tool in git to do this.
Changed in git-buildpackage (Debian): | |
status: | Unknown → New |
Changed in git-buildpackage (Debian): | |
status: | New → Fix Committed |
Changed in git-buildpackage (Debian): | |
status: | Fix Committed → Fix Released |
git merge-base is what you want, I think, more specifically --upstream-branch should default to $(git merge-base HEAD upstream)