Re: [PATCH v3 0/3] Make update refs more atomic

2014-04-11 Thread Junio C Hamano
Ronnie Sahlberg writes: > refs.c:ref_transaction_commit() intermingles doing updates and checks with > actually applying changes to the refs in loops that abort on error. > This is done one ref at a time and means that if an error is detected that > will fail the operation partway through the lis

[PATCH v3 0/3] Make update refs more atomic

2014-04-11 Thread Ronnie Sahlberg
refs.c:ref_transaction_commit() intermingles doing updates and checks with actually applying changes to the refs in loops that abort on error. This is done one ref at a time and means that if an error is detected that will fail the operation partway through the list of refs to update we will end up