wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

Ensure that `grc` and `gcp` always have the correct ordering, regardless of how they were input #261

Closed cjappl closed 1 year ago

cjappl commented 1 year ago

Check list

Description

Closes #253. Essentially the idea is this:

This commit does that, based on the wonderful suggestion on how to do that from @carlfriedrich in the linked ticket (#253).

Best reviewed with turning whitespace off, as I added some in there. I also made a few small stylistic changes so these two functions mirrored each other more closely, as fundamentally they do similar things (get a list of commits, and feed them to the function).

TO TEST:

I was also adding a line to confirm this, which may be helpful in your testing:

echo "${commits[@]}"

on lines 251 and 247.

Type of change

Test environment

cjappl commented 1 year ago

Calling all the usual suspects @sandr01d @carlfriedrich @wfxr to test if you have time before this is merged. Works like a charm on my end so far and removes one of my biggest pain points!

cjappl commented 1 year ago

Just used this for the first time in my work day for gcp man is it nice!! I've been using a...shudder...GUI to do cherry picking because of this issue and this may save me from ever doing it again!

cjappl commented 1 year ago

Added comments. Will keep this open for a few days if others want to review/poke around. I'll merge it early next week if I hear no objections. Thanks for the review @carlfriedrich

sandr01d commented 1 year ago

Works great, good work! I've requested a minor change above though.

cjappl commented 1 year ago

Works great, good work! I've requested a minor change above though.

@sandr01d could you re-post your request? I don't see it anywhere

sandr01d commented 1 year ago

Works great, good work! I've requested a minor change above though.

@sandr01d could you re-post your request? I don't see it anywhere

You've already addressed it in 1eac221 :slightly_smiling_face:

cjappl commented 1 year ago

Ah! Nice. Good teamwork then :) I figured it out via magic.

I’ll merge this sometime soon. Thanks for the eyes.

On Thu, Dec 15, 2022 at 12:32 PM, sandr01d @.***> wrote:

Works great, good work! I've requested a minor change above though.

@.***(https://github.com/sandr01d) could you re-post your request? I don't see it anywhere

You've already addressed it in 1eac221 🙂

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>