Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- Date: Wed, 25 Jun 2008 13:48:11 -0700
- From: Junio C Hamano <gitster@xxxxxxxxx>
- Subject: Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
"Avery Pennarun" <apenwarr@xxxxxxxxx> writes: >> * You say "git checkout -- file" when you want to "check out the file >> from the index"; > > The real question here is the --. Is it strictly needed? It's > optional in things like git-diff, which just do their best to guess > what you mean if you don't use the --. No, I wrote -- only for clarity, because you can happen to have a branch whose name is the same as the file. Otherwise you can safely omit it, just like git-diff and any other commands that follow the -- convention. I have a work tree that has an untracked file HEAD and master just to catch script breakages that forgets to place -- in appropriate places when they deal with user supplied pathnames. -- 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: Avery Pennarun
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- References:
- Re: why is git destructive by default? (i suggest it not be!)
- From: Steven Walter
- 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: Junio C Hamano
- Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to
- From: Avery Pennarun
- Re: why is git destructive by default? (i suggest it not be!)
- Prev by Date: Re: policy and mechanism for less-connected clients
- Next by Date: Re: how to rewalk the commit list after rename detection
- 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):