Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: git completion - pass on --git-dir option



Oliver Kiddle wrote on Fri, Sep 30, 2016 at 09:12:55 +0200:
> Various aspects of git completion don't work if the option --git-dir is
> used. This solves that by putting the value in $GIT_DIR.
> 
> +++ b/Completion/Unix/Command/_git
> @@ -7484,7 +7484,7 @@ _git() {
> +	(( $+opt_args[--git-dir] )) && local -x GIT_DIR=$opt_args[--git-dir]

Also for --work-tree/GIT_WORK_TREE?

There are other --option/ENVVAR pairs in git(1), but I don't know
whether it is important for them to get this treatment too.

Cheers,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author