Re: [PATCH 5/5] fast-import: stop using lock_ref_sha1

2014-08-25 Thread Ronnie Sahlberg
The next ref transaction series does a similar change and ends up removing the function lock_ref_sha1() completely. https://code-review.googlesource.com/#/c/1017/19/refs.c So I think we can drop this patch. ronnie sahlberg On Fri, Aug 22, 2014 at 10:33 PM, Jeff King p...@peff.net wrote: We

[PATCH 5/5] fast-import: stop using lock_ref_sha1

2014-08-22 Thread Jeff King
We can use lock_any_ref_for_update instead. Besides being more flexible, the only difference between the two is that lock_ref_sha1 does not allow top-level refs like refs/foo to be updated. However, we know that we do not have such a ref, because we explicitly add the tags/ prefix ourselves. Note