Re: [PATCH 2/5] refs.c: write updates to packed refs when a transaction has more than one ref

2014-07-30 Thread Ronnie Sahlberg
On Tue, Jul 29, 2014 at 2:09 PM, Junio C Hamano gits...@pobox.com wrote: Ronnie Sahlberg sahlb...@google.com writes: + /* + * Always copy loose refs that are to be deleted to the packed refs. + * If we are updating multiple refs then copy all non symref refs + * to the

Re: [PATCH 2/5] refs.c: write updates to packed refs when a transaction has more than one ref

2014-07-30 Thread Ronnie Sahlberg
On Tue, Jul 29, 2014 at 2:11 PM, Junio C Hamano gits...@pobox.com wrote: Ronnie Sahlberg sahlb...@google.com writes: + packed = get_packed_refs(ref_cache);; s/;;/;/; ;-) Sorry, I couldn't resist the urge to type many semicolons ;-) Fixed, thanks! -- To unsubscribe from this

Re: [PATCH 2/5] refs.c: write updates to packed refs when a transaction has more than one ref

2014-07-29 Thread Junio C Hamano
Ronnie Sahlberg sahlb...@google.com writes: + /* + * Always copy loose refs that are to be deleted to the packed refs. + * If we are updating multiple refs then copy all non symref refs + * to the packed refs too. + */ for (i = 0; i n; i++) {

Re: [PATCH 2/5] refs.c: write updates to packed refs when a transaction has more than one ref

2014-07-29 Thread Junio C Hamano
Ronnie Sahlberg sahlb...@google.com writes: + packed = get_packed_refs(ref_cache);; s/;;/;/; ;-) Sorry, I couldn't resist the urge to type many semicolons ;-) -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

[PATCH 2/5] refs.c: write updates to packed refs when a transaction has more than one ref

2014-07-25 Thread Ronnie Sahlberg
When we are updating more than one single ref, i.e. not a commit, then write the updated refs directly to the packed refs file instead of writing them as loose refs. Change clone to use a transaction instead of using the packed refs API. This changes the behavior of clone slightly. Previously