Re: [PATCH 4/7] remote.c: add command line option parser for --lockref

2013-07-17 Thread Junio C Hamano
John Keeping j...@keeping.me.uk writes: On Tue, Jul 09, 2013 at 12:53:27PM -0700, Junio C Hamano wrote: diff --git a/remote.c b/remote.c index 81bc876..e9b423a 100644 --- a/remote.c +++ b/remote.c @@ -1938,3 +1938,62 @@ struct ref *get_stale_heads(struct refspec *refs, int ref_count,

Re: [PATCH 4/7] remote.c: add command line option parser for --lockref

2013-07-17 Thread Junio C Hamano
John Keeping j...@keeping.me.uk writes: On Tue, Jul 09, 2013 at 12:53:27PM -0700, Junio C Hamano wrote: diff --git a/remote.c b/remote.c index 81bc876..e9b423a 100644 --- a/remote.c +++ b/remote.c @@ -1938,3 +1938,62 @@ struct ref *get_stale_heads(struct refspec *refs, int ref_count,

Re: [PATCH 4/7] remote.c: add command line option parser for --lockref

2013-07-16 Thread John Keeping
On Tue, Jul 09, 2013 at 12:53:27PM -0700, Junio C Hamano wrote: diff --git a/remote.c b/remote.c index 81bc876..e9b423a 100644 --- a/remote.c +++ b/remote.c @@ -1938,3 +1938,62 @@ struct ref *get_stale_heads(struct refspec *refs, int ref_count, struct ref *fet

[PATCH 4/7] remote.c: add command line option parser for --lockref

2013-07-09 Thread Junio C Hamano
Update git push and git send-pack to parse this commnd line option. The intended sematics is: * --lockref alone, without specifying the details, will protect _all_ remote refs that are going to be updated by requiring their current value to be the same as the remote-tracking branch we