summaryrefslogtreecommitdiff
path: root/builtin-for-each-ref.c
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2006-11-05 06:21:57 -0500
committerLibravatar Junio C Hamano <junkio@cox.net>2006-11-05 13:36:33 -0800
commit873537fadc9bdc35726d1c69c46926c7f5c49dd2 (patch)
tree9c2f1821776b9e3893158a619a7d72282debe0c6 /builtin-for-each-ref.c
parentBash completion support for remotes in .git/config. (diff)
downloadtgif-873537fadc9bdc35726d1c69c46926c7f5c49dd2.tar.xz
Take --git-dir into consideration during bash completion.
If the user has setup a command line of "git --git-dir=baz" then anything we complete must be performed within the scope of "baz" and not the current working directory. This is useful with commands such as "git --git-dir=git.git log m" to complete out "master" and view the log for the master branch of the git.git repository. As a nice side effect this also works for aliases within the target repository, just as git would honor them. Unfortunately because we still examine arguments by absolute position in most of the more complex commands (e.g. git push) using --git-dir with those commands will probably still cause completion to fail. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-for-each-ref.c')
0 files changed, 0 insertions, 0 deletions