login
Header Space

 
 

Re: git push (mis ?)behavior

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Steffen Prohaska <prohaska@...>, Pierre Habouzit <madcoder@...>, <git@...>
Date: Tuesday, October 9, 2007 - 1:05 am

On Fri, Sep 28, 2007 at 00:07:27 -0700, Junio C Hamano wrote:

I would like this for another reason and maybe in slightly different way.
Basically I would have configured something along the lines:
    [remote "origin"]
    push =3D refs/heads/*:refs/heads/jahu/*
and would want to choose, via option, whether I want to push all the branch=
es
or just the current one, but in any case with the renaming specified.

The idea behind this is to have a shared repository, but not shared branche=
s.
Everybody would have a subdirectory in refs/heads where he could push
anything that the others should see and than somebody else (either designat=
ed
integrator, or just anybody different) would do a quick review and merge it
into master.

Now I could of course push out everything, but usually I'd want to push
exactly the current branch, renaming it by the rule given, whether it alrea=
dy
existed in origin or not. Than there can be eg. a post-receive hook notifyi=
ng
the integrator that there is something for review.


We can have an option and/or we can have some new parameter in .git/config.
Maybe:
    push =3D refs/heads/*:refs/heads/jahu/*
would mean to push always (ie. everything under refs/heads) and eg.:
    push =3D !refs/heads/*:refs/heads/jahu/*
would mean to push just current branch if it matches. Mixed setups would be
possible:
    push =3D refs/heads/*:refs/heads/jahu/* !master:master !next:next
would mean push everything to jahu/ and if current is master, push it to
master, or if current is next, push it to next.

--=20
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git push (mis ?)behavior, Pierre Habouzit, (Thu Sep 27, 9:04 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Thu Sep 27, 3:22 pm)
Re: git push (mis ?)behavior, Miles Bader, (Wed Oct 3, 1:10 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Wed Oct 3, 3:35 am)
Re: git push (mis ?)behavior, Miles Bader, (Wed Oct 3, 4:57 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 6:25 am)
Re: git push (mis ?)behavior, Benoit SIGOURE, (Wed Oct 3, 7:10 am)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 6:49 am)
Re: git push (mis ?)behavior, Johannes Schindelin, (Wed Oct 3, 11:27 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 12:26 pm)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 12:07 pm)
Re: git push (mis ?)behavior, Johannes Schindelin, (Wed Oct 3, 12:18 pm)
Re: git push (mis ?)behavior, Pierre Habouzit, (Wed Oct 3, 12:28 pm)
Re: git push (mis ?)behavior, Johannes Schindelin, (Wed Oct 3, 12:44 pm)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 1:02 pm)
Re: git push (mis ?)behavior, Steffen Prohaska, (Thu Oct 4, 10:47 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Thu Oct 4, 11:54 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Thu Oct 4, 12:24 pm)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Thu Oct 4, 1:49 pm)
Re: git push (mis ?)behavior, Junio C Hamano, (Wed Oct 3, 7:08 am)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 9:14 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 7:22 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Wed Oct 3, 5:03 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 2:47 am)
Re: git push (mis ?)behavior, Miles Bader, (Wed Oct 3, 4:32 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Wed Oct 3, 1:39 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Fri Sep 28, 8:38 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 2:52 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Fri Sep 28, 3:07 am)
Re: git push (mis ?)behavior, Jan Hudec, (Tue Oct 9, 1:05 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Tue Oct 9, 3:23 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 5:11 am)
Re: git push (mis ?)behavior, Johannes Schindelin, (Fri Sep 28, 9:31 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Fri Sep 28, 2:58 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 5:26 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Fri Sep 28, 5:44 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 6:04 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Thu Sep 27, 3:36 pm)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Thu Sep 27, 9:30 am)
Re: git push (mis ?)behavior, Benoit SIGOURE, (Thu Sep 27, 11:28 am)
speck-geostationary