From: Peter Wu Date: Wed, 28 Oct 2015 17:21:22 GMT Subject: [PATCH 0/3] bash-completion fixes for global git options handling Message-ID: <1446052885-11173-1-git-send-email-peter@lekensteyn.nl> Hi, These patches improve bash-completion when global git options are present. Consider this problem: bash-4.3$ git -C ../linux staerror: 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