Re: [PATCH] checkout --track: make up a sensible branch name if '-b' was omitted

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pieter de Bie <pieter@...>
Cc: Junio C Hamano <gitster@...>, <git@...>
Date: Sunday, August 10, 2008 - 7:02 pm

Hi,

On Sat, 9 Aug 2008, Pieter de Bie wrote:


FWIW I am totally opposed to this kind of reasoning.  I consider it sloppy 
to make assumptions that might or might not be true, and to force 
a change that might be convenient to you, but is likely to hurt others.

Besides, your suggestion completely breaks consistency.  If somebody asks 
to name a new branch "origin/master" (and "-b origin/master" is _just_ 
_that_), then it is not Git's job to fix the user's mistake.  Just like it 
is not Git's job to fix when somebody said "git commit", but meant "git 
push".

After all, I might _want_ to create a local branch "origin/master", and 
you would just break the valid assumption that "-b origin/master" would do 
that for me.

Hth,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] checkout --track: make up a sensible branch name if ..., Johannes Schindelin, (Sat Aug 9, 10:00 am)
Re: [PATCH] checkout --track: make up a sensible branch name..., Johannes Schindelin, (Sat Aug 9, 5:08 pm)
Re: [PATCH] checkout --track: make up a sensible branch name..., Johannes Schindelin, (Mon Aug 11, 7:01 am)
Re: [PATCH] checkout --track: make up a sensible branch name..., Johannes Schindelin, (Sun Aug 10, 7:02 pm)