On Wed, 2010-05-05 at 20:05 -0400, Adam Brewster wrote: > On 5/5/10, Junio C Hamano <gitster@xxxxxxxxx> wrote: > > > > 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 I'd be tempted to say that setting $GIT_CWD was an ideal solution, if Junio hadn't mentioned the possibility of cwd being the default in 1.8.0, which to me sounds much more sane than defaulting to the repository root. Defaulting to the root has never made sense to me and has some perfectly good built-ins to emulate if needed. I know I have at least two scripts-which-should-be-aliases sitting around because of this restriction. -- -- Will -- 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