Re: [PATCH] Drop some dashes from built-in invocations in scripts
- Date: Mon, 07 Aug 2017 09:35:55 -0700
- From: Junio C Hamano <gitster@xxxxxxxxx>
- Subject: Re: [PATCH] Drop some dashes from built-in invocations in scripts
Michael Forney <mforney@xxxxxxxxxxx> writes:
> This way, they still work even if the built-in symlinks aren't
> Signed-off-by: Michael Forney <mforney@xxxxxxxxxxx>
> It looks like there was an effort to do this a number of years ago (through
> `make remove-dashes`). These are just a few I noticed were still left in the
> .sh scripts.
Our goal was *not* to have *no* "git-foo" on the filesystem,
though. It happened in v1.6.0 timeframe and it was about removing
"git-foo" from end-user's $PATH.
Earlier there was a more ambitious proposal to remove all "git-foo"
even from $GIT_EXEC_PATH for built-in commands, but that plan was
The changes in your patch still are good changes to make sure people
who copy & paste code would see fewer instances of "git-foo", but
"will still work even if I break my installation of Git by removing
them from the filesystem" is not the project's goal.
IIUC, you will need "$GIT_EXEC_PATH/git-checkout" on the filesystem
if you want your "git co" alias to work, as we spawn built-in as a