Re: [PATCH v2] An alias that starts with "!!" runs in the current directory.
On 5/5/10, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
>
> It probably is a good idea to switch aliases to start at the $cwd in 1.8.0
> (or perhaps one major release after it), and using a notation that is more
> descriptive, something like "!(cwd)" vs "!(root)", may give us a better
> transtion strategy than casting cryptic "!!" in the stone.
>
For what it's worth, I like "!cmd".
Would it be good enough to set some environment variables?
[alias]
command_in_cwd = "!cd $GIT_CWD; ..."Adam