From: Junio C Hamano Date: Wed, 25 Jun 2008 20:09:16 GMT Subject: Re: [PATCH] cmd_reset: don't trash uncommitted changes unless told to Message-ID: <7vprq5z383.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080625195003.GB15077@mit.edu> Theodore Tso writes: > On Wed, Jun 25, 2008 at 10:22:08AM -0700, Junio C Hamano wrote: >> Isn't that this? >> >> #!/bin/sh >> exec git checkout HEAD -- "$@" > > Well, I think you really want this to handle filenames with spaces: Sorry, I do not understand that remark. Does "$@" corrupt embedded spaces in its parameters?