Re: [git-users] Re: git checkout -t: better error

2014-09-15 Thread Konstantin Khomoutov
On Mon, 15 Sep 2014 07:41:58 -0700 (PDT)
Pierre-François CLEMENT  wrote:

> > Could we improve the error message for `git checkout -t`? Sometimes
> > I forget to type the remote name. Something like:
> >
> > "Missing remote or branch name; try -b"
[...]
> That said, here's the error I get
> when running *git-checkout -t* with no arguments using git v2.1.0 in
> case you have a different, more obscure one (due to an older version
> of git for instance):
> 
> $ git checkout -t
> fatal: --track needs a branch name

Same here with Git 1.9.1.

I beleive it's [1]; precisely this bit:

> * js/checkout-dwim-local (Sat Aug 9 16:00:12 2008 +0200) 1 commit
> + checkout --track: make up a sensible branch name if '-b' was
>   omitted

I'm lazy to search which first released version of Git this change ended
up but I'm sure it's already in.

1. http://permalink.gmane.org/gmane.comp.version-control.git/92596

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Re: git checkout -t: better error

2014-09-15 Thread Pierre-François CLEMENT
On Friday, 12 September 2014 21:44:50 UTC+2, Andrew Pennebaker wrote:
>
> Could we improve the error message for `git checkout -t`? Sometimes I 
> forget to type the remote name. Something like:
>
> "Missing remote or branch name; try -b"
>
This group is for helping people with using Git; for change requests / bug 
reports you should use the g...@vger.kernel.org mailling list as stated on 
the git-scm community page . That said, 
here's the error I get when running *git-checkout -t* with no arguments 
using git v2.1.0 in case you have a different, more obscure one (due to an 
older version of git for instance):

$ git checkout -t
fatal: --track needs a branch name
 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.