[PATCH 3/5] refs.c: use packed refs when deleting refs during a transaction

2014-07-25 Thread Ronnie Sahlberg
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 modifying these refs and keep it locked until we are

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

2014-07-25 Thread Jonathan Nieder
Ronnie Sahlberg wrote: 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 modifying these refs and keep