Re: Re* [PATCH] allow git-am to run in a subdirectory
- From
Jeff King <peff@peff.net>
- Date
- Mar 3, 2008, 06:58 UTC
- Message-ID
- <20080303065808.GA22810@coredump.intra.peff.net>
- In-Reply-To
- <7vlk50joe0.fsf_-_@gitster.siamese.dyndns.org>
On Sun, Mar 02, 2008 at 10:46:31PM -0800, Junio C Hamano wrote:
> > The problem is that I need to turn the original "$@" into a new "$@" > > that is correctly prefixed, which requires proper quoting. > > Perhaps like this?
Yes. For some reason I didn't think of doing 'set "$@" "$new"' to rebuild the list one by one.
Show 18 quoted lines
> + if test -n "$prefix" && test $# != 0
> + then
> + first=t
> + for arg
> + do
> + test -n "$first" && {
> + set x
> + first=
> + }
> + case "$arg" in
> + /*)
> + set "$@" "$arg" ;;
> + *)
> + set "$@" "$prefix$arg" ;;
> + esac
> + done
> + shift
> + fiThis handles the mailbox parameters. The only other file parameter is $dotest. If I do "cd t && git am --dotest=.foo", then should it be "t/.foo" or ".foo"?
-Peff