Re: [PATCH v6 12/42] replace.c: use the ref transaction functions for updates

2014-05-15 Thread Ronnie Sahlberg
On Wed, May 14, 2014 at 5:30 PM, Jonathan Nieder wrote: > Ronnie Sahlberg wrote: > > [...] >> +++ b/builtin/replace.c > [...] >> @@ -157,11 +158,12 @@ static int replace_object(const char *object_ref, >> const char *replace_ref, >> else if (!force) >> die("replace ref '%s' alr

Re: [PATCH v6 12/42] replace.c: use the ref transaction functions for updates

2014-05-14 Thread Jonathan Nieder
Ronnie Sahlberg wrote: [...] > +++ b/builtin/replace.c [...] > @@ -157,11 +158,12 @@ static int replace_object(const char *object_ref, const > char *replace_ref, > else if (!force) > die("replace ref '%s' already exists", ref); > > - lock = lock_any_ref_for_update(ref, p

[PATCH v6 12/42] replace.c: use the ref transaction functions for updates

2014-05-01 Thread Ronnie Sahlberg
Update replace.c to use ref transactions for updates. Signed-off-by: Ronnie Sahlberg --- builtin/replace.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/builtin/replace.c b/builtin/replace.c index b62420a..b037b29 100644 --- a/builtin/replace.c +++ b/builtin/