git-push: allow globbing wildcard refspec.
commitd46ae3f09a8c7b531e1110d46a2f8cdcfa853b11
authorJunio C Hamano <junkio@cox.net>
Tue, 6 Feb 2007 07:01:14 +0000 (5 23:01 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 6 Feb 2007 08:46:56 +0000 (6 00:46 -0800)
tree5f61909319bc50e6707c704857b8a1c85a2f7e01
parent88293c675c0c15c8247de32e903f4302bac63027
git-push: allow globbing wildcard refspec.

This allows you to set up mothership-satellite configuration
more symmetrically and naturally by allowing the globbing
wildcard refspec for git-push.  On your satellite machine:

    [remote "mothership"]
        url = mothership:project.git
        fetch = refs/heads/*:refs/remotes/mothership/*
        push = refs/heads/*:refs/remotes/satellite/*

You would say "git fetch mothership" to update your tracking
branches under mothership/ to keep track of the progress on the
mothership side, and when you are done working on the satellite
machine, you would "git push mothership" to update their
tracking branches under satellite/.  Corresponding configuration
on the mothership machine can be used to make "git fetch satellite"
update its tracking branch under satellite/. on the mothership.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-push.c