summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2009-09-07 08:56:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-08 08:18:46 (GMT)
commit1c2eafb89bcaf2ddbf4dfb93df19673c0fadaaeb (patch)
treea5bab1eb2438c01427e663b629505b30861401ba /contrib
parentd071d942963fa76b11826f25c54fdfd8b09d7626 (diff)
downloadgit-1c2eafb89bcaf2ddbf4dfb93df19673c0fadaaeb.zip
git-1c2eafb89bcaf2ddbf4dfb93df19673c0fadaaeb.tar.gz
git-1c2eafb89bcaf2ddbf4dfb93df19673c0fadaaeb.tar.bz2
Add url.<base>.pushInsteadOf: URL rewriting for push only
This configuration option allows systematically rewriting fetch-only URLs to push-capable URLs when used with push. For instance: [url "ssh://example.org/"] pushInsteadOf = "git://example.org/" This will allow clones of "git://example.org/path/to/repo" to subsequently push to "ssh://example.org/path/to/repo", without manually configuring pushurl for that remote. Includes documentation for the new option, bash completion updates, and test cases (both that pushInsteadOf applies to push, that it does not apply to fetch, and that it is ignored when pushURL is already defined). Signed-off-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index bf688e1..9859204 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1532,7 +1532,7 @@ _git_config ()
url.*.*)
local pfx="${cur%.*}."
cur="${cur##*.}"
- __gitcomp "insteadof" "$pfx" "$cur"
+ __gitcomp "insteadOf pushInsteadOf" "$pfx" "$cur"
return
;;
esac