From: Jared Hance Date: Mon, 02 Aug 2010 12:30:01 GMT Subject: Re: [PATCH] rebase -i: add exec command to launch a shell command Message-ID: <20100802123001.GA3500@localhost.localdomain> In-Reply-To: <1280743433-27803-1-git-send-email-Matthieu.Moy@imag.fr> On Mon, Aug 02, 2010 at 12:03:53PM +0200, Matthieu Moy wrote: > The shell command is ran (in the directory where the rebase was started > by the user) I disagree with how intuitive this behavior is. "rebase" is a repository level command - It modifies the objects in the repository. As a side effect, the working tree attached to a (non-bare) repository is changed, even outside of where the rebase was ran. Since the rebase affects the entire repository, I think it makes sense for the commands to be run out of the repository root. Perhaps a command-line option for toggling this behavior would be a good compromise.