From: Junio C Hamano Date: Wed, 05 May 2010 22:02:34 GMT Subject: Re: [PATCH] An alias that starts with "!!" runs in the current directory. Message-ID: <7vvdb2hurp.fsf@alter.siamese.dyndns.org> In-Reply-To: <19425.54504.163875.379151@winooski.ccs.neu.edu> 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.