From: Ilari Liusvaara Date: Wed, 13 Jan 2010 16:27:36 GMT Subject: Re: [PATCH] git push --track Message-ID: <20100113162736.GA7505@Knoppix> In-Reply-To: On Wed, Jan 13, 2010 at 04:55:20PM +0100, Rudolf Polzer wrote: > On Wed, 13 Jan 2010 16:43:10 +0100, Ilari Liusvaara > wrote: > > >On Wed, Jan 13, 2010 at 04:12:49PM +0100, Rudolf Polzer wrote: > >>Hi, > >> > > Of course, but I assume the sign-off would not be by me, but by some > of the git developers, and would depend on whether they actually > want this feature. It would need sign-off by you. Even if you took the code from somewhere (and then it would need theirs as well) and passed it along. > >- Should the tracking be set up even if only part of ref update suceeded > >(for those that succeeded), not requiring all to succeed? > > Good point, but I simply see no clean way to set it up for the > succeeded refs. Would be a nice idea for improvement of this. Ah, that is only known in transport_push and what it calls (and transport_push is last point to insert common functionality)... > @@ -218,6 +249,8 @@ int cmd_push(int argc, const char **argv, const > char *prefix) > OPT_BOOLEAN( 0 , "thin", &thin, "use thin pack"), > OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", > "receive pack program"), > OPT_STRING( 0 , "exec", &receivepack, "receive-pack", "receive > pack program"), > + OPT_BIT('t', "track", &flags, "set up tracking mode (see git-pull(1))", > + TRANSPORT_PUSH_TRACK), > OPT_END() > }; Linewrap damage. -Ilari