# git-commit could allow grouping of short options

3 messages from 2007-02-03 to 2007-02-05. Participants: Gerrit Pape, Eric Wong, Jakub Narebski.
Thread: https://gitlist.dev/t/6648

## Gerrit Pape, 2007-02-03 22:41

Subject: git-commit could allow grouping of short options
Message-ID: <20070203224151.19678.qmail@41f6d84bf5aaea.315fe32.mid.smarden.org>
URL: https://gitlist.dev/e/20070203224151.19678.qmail%4041f6d84bf5aaea.315fe32.mid.smarden.org

```
Hi, please see http://bugs.debian.org/407241:

> git-commit could allow grouping of short options, rather than failing:
> 
> $ git commit -avs
> Usage: /usr/bin/git-commit [-a] [-s] [-v] [--no-verify] ...

I personally would like this too, not only for git-commit.

Thanks, Gerrit.

```

## Eric Wong, 2007-02-04 01:05

Subject: Re: git-commit could allow grouping of short options
Message-ID: <20070204010559.GA3421@localdomain>
URL: https://gitlist.dev/e/20070204010559.GA3421%40localdomain
In-Reply-To: <20070203224151.19678.qmail@41f6d84bf5aaea.315fe32.mid.smarden.org>

```
Gerrit Pape <pape@smarden.org> wrote:
> Hi, please see http://bugs.debian.org/407241:
> 
> > git-commit could allow grouping of short options, rather than failing:
> > 
> > $ git commit -avs
> > Usage: /usr/bin/git-commit [-a] [-s] [-v] [--no-verify] ...
> 
> I personally would like this too, not only for git-commit.

I had some patches to implement this a while ago ('gitopt') but I never
got around to cleaning them up and fixing some bugs.  Hopefully I'll
have time in the next weeks.

-- 
Eric Wong

```

## Jakub Narebski, 2007-02-05 09:18

Subject: Re: git-commit could allow grouping of short options
Message-ID: <eq6snc$80m$1@sea.gmane.org>
URL: https://gitlist.dev/e/eq6snc%2480m%241%40sea.gmane.org
In-Reply-To: <20070204010559.GA3421@localdomain>

```
[Cc: git@vger.kernel.org]

Eric Wong wrote:
> Gerrit Pape <pape@smarden.org> wrote:

>> Hi, please see http://bugs.debian.org/407241:
>> 
>>> git-commit could allow grouping of short options, rather than failing:
>>> 
>>> $ git commit -avs
>>> Usage: /usr/bin/git-commit [-a] [-s] [-v] [--no-verify] ...
>> 
>> I personally would like this too, not only for git-commit.
> 
> I had some patches to implement this a while ago ('gitopt') but I never
> got around to cleaning them up and fixing some bugs.  Hopefully I'll
> have time in the next weeks.

It would be nice to also have long, descriptiove option for each short,
single character option of each git command, for example --patch as longopt
alternative to git-diff-tree -p option, etc.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

```
