From: Eli Barzilay Date: Wed, 05 May 2010 22:13:45 GMT Subject: Re: [PATCH] An alias that starts with "!!" runs in the current directory. Message-ID: <19425.60825.824552.716664@winooski.ccs.neu.edu> In-Reply-To: <7vvdb2hurp.fsf@alter.siamese.dyndns.org> On May 5, Junio C Hamano wrote: > Eli Barzilay writes: > > > It looks like setup_git_directory_gently() returns the original CWD,... > > It is designed to return what we internally call "prefix". You > however have to be careful as it can return NULL or an empty string > when you are already at the top of the working tree. OK, in this case it looks like it should work as expected. At least provided that chdir("") stays in the same directory -- and given the call at the end of handle_alias(), it looks like this assumption is already made. Does this sound right? -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life!