Re: [PATCH v8 17/44] fast-import.c: change update_branch to use ref transactions

2014-05-15 Thread Ronnie Sahlberg
On Thu, May 15, 2014 at 2:47 PM, Jonathan Nieder wrote: > Ronnie Sahlberg wrote: > >> --- a/fast-import.c >> +++ b/fast-import.c >> @@ -1679,39 +1679,45 @@ found_entry: >> static int update_branch(struct branch *b) >> { >> static const char *msg = "fast-import"; >> - struct ref_lock *l

Re: [PATCH v8 17/44] fast-import.c: change update_branch to use ref transactions

2014-05-15 Thread Jonathan Nieder
Ronnie Sahlberg wrote: > --- a/fast-import.c > +++ b/fast-import.c > @@ -1679,39 +1679,45 @@ found_entry: > static int update_branch(struct branch *b) > { > static const char *msg = "fast-import"; > - struct ref_lock *lock; > + struct ref_transaction *transaction; > unsigned

[PATCH v8 17/44] fast-import.c: change update_branch to use ref transactions

2014-05-15 Thread Ronnie Sahlberg
Change update_branch() to use ref transactions for updates. Signed-off-by: Ronnie Sahlberg --- fast-import.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/fast-import.c b/fast-import.c index 6707a66..79d219b 100644 --- a/fast-import.c +++ b/fast-impo