Re: [PATCH v4 15/27] fast-import.c: change update_branch to use ref transactions

2014-04-29 Thread Junio C Hamano
Ronnie Sahlberg writes: > + transaction = ref_transaction_begin(); > + if ((!transaction || > + ref_transaction_update(transaction, b->name, b->sha1, old_sha1, > +0, 1)) || > + (ref_transaction_commit(transaction, msg, &err) && > +

Re: [PATCH v4 15/27] fast-import.c: change update_branch to use ref transactions

2014-04-29 Thread Ronnie Sahlberg
On Mon, Apr 28, 2014 at 7:18 PM, Eric Sunshine wrote: > On Mon, Apr 28, 2014 at 6:54 PM, Ronnie Sahlberg wrote: >> Change update_branch() to use ref transactions for updates. >> >> Signed-off-by: Ronnie Sahlberg >> --- >> fast-import.c | 20 >> 1 file changed, 12 insertions

Re: [PATCH v4 15/27] fast-import.c: change update_branch to use ref transactions

2014-04-28 Thread Eric Sunshine
On Mon, Apr 28, 2014 at 6:54 PM, Ronnie Sahlberg wrote: > Change update_branch() to use ref transactions for updates. > > Signed-off-by: Ronnie Sahlberg > --- > fast-import.c | 20 > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git a/fast-import.c b/fast-impor

[PATCH v4 15/27] fast-import.c: change update_branch to use ref transactions

2014-04-28 Thread Ronnie Sahlberg
Change update_branch() to use ref transactions for updates. Signed-off-by: Ronnie Sahlberg --- fast-import.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/fast-import.c b/fast-import.c index fb4738d..300c8dc 100644 --- a/fast-import.c +++ b/fast-import