threads / discuss / 60834

single-char options

Subject: single-char options

## tl;dr

4 messages between Feb 2, 2024 and Feb 5, 2024.

replies: 3people: 4as markdown or json

Martin Guy· Feb 2, 2024, 13:45 UTC · lore

I'm sure this must have been thought of before and rejected, but us RSI sufferers would like to be able to say "git rebase -c" for "--continue" not only for speed and ease, but for all the other RSI sufferers out there.

I mean, yes, I can implement them for myself (at least for the most common long ones) but wondere what the zeitgeist was on this issue - at least that way they would be the same letters for everybody.

Thanks
    M
Kristoffer Haugsbakk· Feb 2, 2024, 14:42 UTC · re: Martin Guy · lore

Re: single-char options

On Fri, Feb 2, 2024, at 14:45, Martin Guy wrote:
Show 12 quoted lines
> I'm sure this must have been thought of before and rejected, but us RSI
> sufferers would like to be able to say "git rebase -c" for "--continue"
> not only for speed and ease, but for all the other RSI sufferers out
> there.
>
> I mean, yes, I can implement them for myself (at least for the most
> common long ones) but wondere what the zeitgeist was on this issue - at
> least that way they would be the same letters for everybody.
>
> Thanks
>
>     M

Magit is nice if you use Emacs. All interactions are a combination of one-letter commands and one-letter options.

The CLI is too tedious to do everything in for me.
-- 
Kristoffer Haugsbakk
Sergey Organov· Feb 2, 2024, 14:59 UTC · re: Martin Guy · lore

Re: single-char options

Martin Guy <martinwguy@gmail.com> writes:
> I'm sure this must have been thought of before and rejected, but us RSI
> sufferers would like to be able to say "git rebase -c" for "--continue"
> not only for speed and ease, but for all the other RSI sufferers out
> there.

I'm afraid you'll have hard time to bring *any* one-letter option into core Git.

That said, an option here is to maintain suitable set of aliases, probably contributed to Git to be easily installed, containing, say,

  git config --global alias.re 'rebase'
  git config --global alias.rc 'rebase --continue'
  git config --global alias.ra 'rebase --abort'
  etc.
HTH,
-- 
Sergey Organov
Oswald Buddenhagen· Feb 4, 2024, 13:47 UTC · re: Martin Guy · lore

Re: single-char options

On Fri, Feb 02, 2024 at 01:45:55PM +0000, Martin Guy wrote:
Show 5 quoted lines
>I'm sure this must have been thought of before and rejected, but us RSI
>sufferers would like to be able to say "git rebase -c" for "--continue"
>not only for speed and ease, but for all the other RSI sufferers out
>there.
>

you don't need to re-type the commands. in bash (or any other readline-using shell) just type ctrl-r 'onti' (or anything else sufficiently unique) and maybe ctrl-r a few times more. it's very rare that i type repeat commands from scratch. in fact, to the point that i often spend more time hopping through the history than it would have taken to re-type the command, heh.

← back to recent threads