Re: [PATCH/RFC] completion: filter sources of git scripts from available commands

2015-03-19 Thread Junio C Hamano
SZEDER Gábor writes: > Possible solutions to avoid this issue are: > > - Strip the current working directory from $PATH temporarily while we run > 'git help -a' to get all the available commands. Care must be taken, > because '.' can appear at the very beginning, end, or in the middle of >

[PATCH/RFC] completion: filter sources of git scripts from available commands

2015-03-15 Thread SZEDER Gábor
A bit of background first: - The completion script gets the lists of available and porcelain git commands from the output of 'git help -a', which, besides the "official" git commands from $GIT_EXEC_PATH, includes all executables from $PATH whose name begins with 'git-'. Great, this way the