Re: [PATCH 09/31] refs.c: allow multiple reflog updates during a single transaction

2014-05-19 Thread Ronnie Sahlberg
On Fri, May 16, 2014 at 2:35 PM, Junio C Hamano wrote: > Ronnie Sahlberg writes: > >> Allow to make multiple reflog updates to the same ref during a transaction. >> This means we only need to lock the reflog once, during the first update that >> touches the reflog, and that all further updates ca

Re: [PATCH 09/31] refs.c: allow multiple reflog updates during a single transaction

2014-05-19 Thread Ronnie Sahlberg
On Fri, May 16, 2014 at 3:01 PM, Eric Sunshine wrote: > On Fri, May 16, 2014 at 5:35 PM, Junio C Hamano wrote: >> Ronnie Sahlberg writes: >> >>> Allow to make multiple reflog updates to the same ref during a transaction. >>> This means we only need to lock the reflog once, during the first updat

Re: [PATCH 09/31] refs.c: allow multiple reflog updates during a single transaction

2014-05-16 Thread Eric Sunshine
On Fri, May 16, 2014 at 5:35 PM, Junio C Hamano wrote: > Ronnie Sahlberg writes: > >> Allow to make multiple reflog updates to the same ref during a transaction. >> This means we only need to lock the reflog once, during the first update that >> touches the reflog, and that all further updates ca

Re: [PATCH 09/31] refs.c: allow multiple reflog updates during a single transaction

2014-05-16 Thread Junio C Hamano
Ronnie Sahlberg writes: > Allow to make multiple reflog updates to the same ref during a transaction. > This means we only need to lock the reflog once, during the first update that > touches the reflog, and that all further updates can just write the reflog > entry since the reflog is already lo

[PATCH 09/31] refs.c: allow multiple reflog updates during a single transaction

2014-05-14 Thread Ronnie Sahlberg
Allow to make multiple reflog updates to the same ref during a transaction. This means we only need to lock the reflog once, during the first update that touches the reflog, and that all further updates can just write the reflog entry since the reflog is already locked. This allows us to write cod