Re: [PATCH 4/5] Add --remote option to send-pack
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 29, 2007, 05:49 UTC
- Message-ID
- <7vtzuzg26l.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0704281304360.28708@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 6 quoted lines
> With the --remote option, send-pack will look at the remote > configuration for the specified remote (which must match the > destination URL), and update the local tracking refs to match changes > it causes in the remote heads they track. > > The previous values of local tracking heads are ignored.
I didn't actually look at the code of this patch, as I am rejecting the initial round of [PATCH 2/5] this depends on, but this is one thing Cogito did that we don't, and I think it makes sort of sense. We pretend as if we fetched back immediately after we pushed without giving anybody a chance to further update the refs we updated at the remote. I generally do not like "pretend that we did something" when talking about reliable operations (and SCM _is_ all about reliable operation), and this behaviour is exactly it, but I think this one is excusable.