Hi,
These patches improve bash-completion when global git options are present.
Consider this problem:
bash-4.3$ git -C ../linux sta<TAB>error: invalid key: alias.../linux
This happens because the current script is unaware of the -C option. In general,
global options are not handled well (patch 001 fixes this).
Patch 2 makes the completions more aware of the --git-dir option.
Patch 3 builds on previous patches and makes completions aware of the -C option.
Kind regards,
Peter
Peter Wu (3):
completion: ignore git options for subcommand completion
completion: pass --git-dir to more commands
completion: handle git -C option
contrib/completion/git-completion.bash | 119 ++++++++++++++++++++-------------
1 file changed, 72 insertions(+), 47 deletions(-)
--
2.6.1
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html