threads / discuss / 19253

can we allow -t abbreviation for --track in 'git branch'

Subject: can we allow -t abbreviation for --track in 'git branch'

## tl;dr

4 messages between May 9, 2009 and May 10, 2009.

replies: 3people: 3as markdown or json

Sitaram Chamarty· May 9, 2009, 08:50 UTC · lore
Hello,

Would it make sense to teach "git branch" the short option "-t" the same way that "git checkout" knows it, (ie., as an abbreviation for "--track")?

I use both frequently, and often forget that in "git branch" the short option does not work.

If people think it's OK I'll submit a patch (code and doc).
Regards,
Sitaram
Nicolas Sebrecht· May 9, 2009, 09:17 UTC · re: Sitaram Chamarty · lore

Re: can we allow -t abbreviation for --track in 'git branch'

The 09/05/09, Sitaram Chamarty wrote:
Show 5 quoted lines
> Hello,
> 
> Would it make sense to teach "git branch" the short option
> "-t" the same way that "git checkout" knows it, (ie., as an
> abbreviation for "--track")?
It makes sense for me.
> I use both frequently, and often forget that in "git branch"
> the short option does not work.
Same here. :-)
-- 
Nicolas Sebrecht
Junio C Hamano· May 9, 2009, 15:15 UTC · re: Sitaram Chamarty · lore

Re: can we allow -t abbreviation for --track in 'git branch'

Sitaram Chamarty <sitaramc@gmail.com> writes:
Show 8 quoted lines
> Would it make sense to teach "git branch" the short option
> "-t" the same way that "git checkout" knows it, (ie., as an
> abbreviation for "--track")?
>
> I use both frequently, and often forget that in "git branch"
> the short option does not work.
>
> If people think it's OK I'll submit a patch (code and doc).

I have <20090428152119.GA18935@atc.tcs.com> (aka $gmane/117790) in my inbox.

Sitaram Chamarty· May 10, 2009, 04:23 UTC · re: Junio C Hamano · lore

Re: can we allow -t abbreviation for --track in 'git branch'

On 2009-05-09, Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
> Sitaram Chamarty <sitaramc@gmail.com> writes:
>
>> Would it make sense to teach "git branch" the short option
>> "-t" the same way that "git checkout" knows it, (ie., as an
>> abbreviation for "--track")?
>>
>> I use both frequently, and often forget that in "git branch"
>> the short option does not work.
>>
>> If people think it's OK I'll submit a patch (code and doc).
>
> I have <20090428152119.GA18935@atc.tcs.com> (aka $gmane/117790) in my
> inbox.

Thanks. I posted it some days ago, but then began to wonder if there was more to that change than I thought, and perhaps I should have *asked* first.

Sitaram
PS: And I saw http://gitster.livejournal.com/33638.html only
just now... :-)

← back to recent threads