Re: [PATCH v10 18/44] branch.c: use ref transaction for all ref updates

2014-05-19 Thread Ronnie Sahlberg
On Sat, May 17, 2014 at 6:33 AM, Michael Haggerty wrote: > On 05/16/2014 07:37 PM, Ronnie Sahlberg wrote: >> Change create_branch to use a ref transaction when creating the new branch. >> ref_transaction_create will check that the ref does not already exist and >> fail >> otherwise meaning that w

Re: [PATCH v10 18/44] branch.c: use ref transaction for all ref updates

2014-05-17 Thread Michael Haggerty
On 05/16/2014 07:37 PM, Ronnie Sahlberg wrote: > Change create_branch to use a ref transaction when creating the new branch. > ref_transaction_create will check that the ref does not already exist and fail > otherwise meaning that we no longer need to keep a lock on the ref during the > setup_track

[PATCH v10 18/44] branch.c: use ref transaction for all ref updates

2014-05-16 Thread Ronnie Sahlberg
Change create_branch to use a ref transaction when creating the new branch. ref_transaction_create will check that the ref does not already exist and fail otherwise meaning that we no longer need to keep a lock on the ref during the setup_tracking. This simplifies the code since we can now do the t