Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- Date: Wed, 25 Jun 2008 13:50:06 -0700
- From: Junio C Hamano <gitster@xxxxxxxxx>
- Subject: Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
Theodore Tso <tytso@xxxxxxx> writes: > The one thing I would worry about is the potential ambiguity if you do > something like "git checkout FOOBAR", and FOOBAR was both a branch > name as well as a file name. How should it be interpreted? I'd argue > the real problem was we conflated two distinct operations: "switching > to a new branch", and "reverting a file" to the same name, checkout. I just replied to Avery about that. -- is always the way to disambiguate between refs (that come before --) and paths (that come after --), not limited to "git checkout" but with other commands such as "git log", "git diff", etc. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Theodore Tso
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- References:
- [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Steven Walter
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Junio C Hamano
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Boaz Harrosh
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Johannes Schindelin
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Johannes Sixt
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Johannes Schindelin
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Theodore Tso
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Junio C Hamano
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Theodore Tso
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Avery Pennarun
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Theodore Tso
- [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- Prev by Date: Re: how to rewalk the commit list after rename detection
- Next by Date: Re: policy and mechanism for less-connected clients
- Previous by thread: Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- Next by thread: Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- Index(es):