gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Ranged copy hash

Open intrnl opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. Cherry picking is a daily occurence for my work, and it would usually involve a lot of commits needing to be picked, often 1, but often 10-20 commits as well.

Describe the solution you'd like It would be nice if we can do a commit selection and have the copy hash shortcut copy the range.

Describe alternatives you've considered Yes, I could just do a copy and paste of every single commits I want picked, however that's not fast and convenient.

Additional context None.

intrnl avatar Jun 24 '22 16:06 intrnl

do you want all the commits listed in a comma-separated way or some <commithash1>..<commithash2> notation?

extrawurst avatar Aug 17 '22 15:08 extrawurst

The former is okay, the latter is a nice topping on top.

intrnl avatar Aug 17 '22 15:08 intrnl

well the one is fundamentally different to the other :) one can have gaps, the other not. so I lean towards the comma-separated list

extrawurst avatar Aug 17 '22 16:08 extrawurst

IMO reasonable approach would be space-separated commits unless they are selected in turn. This would allow both git cherry-pick c1 c3 c5 and git cherry-pick c1^..c5.

remique avatar Aug 18 '22 14:08 remique

@remique fine by me. are you up for making it a PR? ;)

extrawurst avatar Aug 18 '22 16:08 extrawurst

Sure, working on it 👍

remique avatar Aug 18 '22 20:08 remique