[PATCH 03/15] refs.c: use packed refs when deleting refs during a transaction

2014-10-21 Thread Ronnie Sahlberg
commit fb5fa1d338ce113b0fea3bb955b50bbb3e827805 upstream. Make the deletion of refs during a transaction more atomic. Start by first copying all loose refs we will be deleting to the packed refs file and then commit the packed refs file. Then re-lock the packed refs file to stop anyone else from m

Re: [PATCH 03/15] refs.c: use packed refs when deleting refs during a transaction

2014-10-22 Thread Junio C Hamano
Ronnie Sahlberg writes: > commit fb5fa1d338ce113b0fea3bb955b50bbb3e827805 upstream. Huh? > Make the deletion of refs during a transaction more atomic. > Start by first copying all loose refs we will be deleting to the packed > refs file and then commit the packed refs file. Then re-lock the pac