Closed cjappl closed 1 year ago
also, if someone could pull this down and test it on their machine, that would also be great. Again, very new with bash syntax so I want to get used to it, but I'm nervous about mistakes :)
Test cases:
In a repo with a main
branch and a feature
branch:
feature
gcp main
- should result in a list of commits from main, you should be able to tab select the commits to cherry pick themgcp
- should come up with a list of all the branches in the repo. selecting one of them will bring up a list of commits from that branchgcp someBranchThatDoesntExist
should behave like 3, just ignore the bad input (should we error out here??)@cjappl Thanks for your patch. I actually don't know why the heck I have added this git checkout
line?! I will take a look into this in the next days. :-)
Thanks!! Appreciate it :)
On Mon, Nov 28, 2022 at 1:24 AM, Tim @.***> wrote:
@.***(https://github.com/cjappl) Thanks for your patch. I actually don't know why the heck I have added this git checkout line?! I will take a look into this in the next days. :-)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Great suggestions @carlfriedrich ! Let me know if that fixes those up. I have tested and confirmed the functionality still works as intended. Now with less annoying "stuck in the loop" when you give an input branch. Definitely a good improvement.
Sounds good @carlfriedrich ! Will "Squash and Merge" do what you're wanting? That's what I usually do anyway. when I submit.
@cjappl Yep, that's fine! The new commit message for the squash commit will appear in the changelog then.
Noticed there was a change recently that broke the ability to pass in an input branch to
gcp
.This change is the following:
git checkout -b
being called when you pass in an argument togcp
input_branch
varinput_branch
is set, use it to do the cherry pick, as opposed to the first FZF selection.PLEASE HELP ME REVIEW THIS, @carlfriedrich and @wfxr. I am such a bash syntax newbie, I don't know if I'm writing bad code 😄
Check list
Description
Type of change
Test environment