Ability to easily cherry-pick git commits
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Opinion
|
Wishlist
|
Chris Patterson |
Bug Description
It'd sometimes be very useful if I could specify a number of git commits (or any VCS with a similar concept) that I want to see cherry-picked on top of the listed source for my part.
This would be most useful for hotfixes that are already merged upstream but not part of a release yet and would align pretty well with what we're doing for our deb packages.
For example, I'd like to be able to do:
lxd:
source: https:/
source-type: git
source-tag: lxd-2.14
source-
- 0ffe2b2ef14b1c6
- 679aafe1fd65fed
- b1eb7453d391164
- 17de1869158f22d
- 4263ec402833cd4
- 865ec4ee242c6b6
Is there already some way to do so today which I missed?
If not, would the approach above be the right way to go or do you have something else in mind which would achieve the same result?
The proposed approach above should be easy enough to implement that I may do it myself, having already some experience with messing with the VCS code in snapcraft.
Changed in snapcraft: | |
assignee: | nobody → Chris Patterson (cjp256) |
I think this sort of falls under patching versus forking discussion, where we have historically leaned toward saying fork instead of patch. In this case, apply those commits to another branch and use that instead of lxd-2.14.
That said, the winds may be changing here. Curious to hear Sergio's thoughts. Would this be a git-specific feature? I'm not sure the other VCS's have similar capabilities (bzr?).