[PATCH 15/15] refs.c: allow deleting refs with a broken sha1

2014-10-21 Thread Ronnie Sahlberg
commit 8d75baa250c0f84cc438568cb53ef1a9dd3dfec9 upstream. Add back support to make it possible to delete refs that have a broken sha1. Add new internal flags REF_ALLOW_BROKEN and RESOLVE_REF_ALLOW_BAD_SHA1 to pass intent from branch.c that we are willing to allow resolve_ref_unsafe and

[PATCH 15/15] refs.c: allow deleting refs with a broken sha1

2014-07-23 Thread Ronnie Sahlberg
Add (back?) support to make it possible to delete refs that are broken. Add a new flag REF_ALLOWBROKEN that can be passed to the functions to lock a ref. If this flag is set we allow locking the ref even if the ref points to a broken sha1. For example a sha1 that is created by : echo Broken

Re: [PATCH 15/15] refs.c: allow deleting refs with a broken sha1

2014-07-23 Thread Eric Sunshine
On Wed, Jul 23, 2014 at 1:03 PM, Ronnie Sahlberg sahlb...@google.com wrote: Add (back?) support to make it possible to delete refs that are broken. Add a new flag REF_ALLOWBROKEN that can be passed to the functions to lock a ref. If this flag is set we allow locking the ref even if the ref