Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 25, 2008, 12:38 UTC
- Message-ID
- <alpine.DEB.1.00.0806251334060.9925@racer>
- In-Reply-To
- <486220CE.3070103@viscovery.net>
Hi,
On Wed, 25 Jun 2008, Johannes Sixt wrote:
Show 13 quoted lines
> Johannes Schindelin schrieb: > > Incidentally, a friend just told me that "checkout" is everything but > > intuitive, and he would have preferred "git branch switch <branch>", but > > then settled for my proposed "git branch --switch <branch>", which I did > > not have time to implement yet, unfortunately. > > $ git config alias.switch checkout > $ git switch topic > > Hm? Notice that the command even reports back: > > Switched to branch "topic" > ^^^^^^^^
Nice. And now my friend says "why does this braindamaged Git not have that command by _default_? Hmm? It is _just as braindamaged_ as CVS!"
And I would not have anything reasonable for my defense.
Because Git _should_ have an intuitive command to switch branches by default. "git checkout" just does not fly, especially given that it can be used to revert single files (which "git revert" should know how to, but does not, see http://mid.gmane.org/7vlk8wshii.fsf@gitster.siamese.dyndns.org).
I _do_ see a cause of confusion here, _even_ if I know Git pretty well.
Ciao, Dscho