Skip to content

Update cherry-pick to skip empty commits #5

Description

@RebelLion420

I love using this script when i need to but the biggest downfall is the manual intervention for cherry-picking empty commits. I looked into it a bit and it seems theres a fairly simple solution that takes advantage of git rev-list. Something like this:

git rev-list --reverse v3.18.139..v3.18.140 . | git cherry-pick --stdin

I have tested it in place of your cherry-pick case statement and it seems to work without a hitch. If you decide to implement it would just make the workflow that much smoother.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions