Re: [PATCH v6 13/42] commit.c: use ref transactions for updates

2014-05-15 Thread Ronnie Sahlberg
On Wed, May 14, 2014 at 6:11 PM, Jonathan Nieder wrote: > Ronnie Sahlberg wrote: > > [...] >> +++ b/builtin/commit.c >> @@ -1541,11 +1541,12 @@ int cmd_commit(int argc, const char **argv, const >> char *prefix) > [...] >> @@ -1667,16 +1668,6 @@ int cmd_commit(int argc, const char **argv, const >

Re: [PATCH v6 13/42] commit.c: use ref transactions for updates

2014-05-14 Thread Jonathan Nieder
Ronnie Sahlberg wrote: [...] > +++ b/builtin/commit.c > @@ -1541,11 +1541,12 @@ int cmd_commit(int argc, const char **argv, const > char *prefix) [...] > @@ -1667,16 +1668,6 @@ int cmd_commit(int argc, const char **argv, const char > *prefix) > strbuf_release(&author_ident); > free_c

[PATCH v6 13/42] commit.c: use ref transactions for updates

2014-05-01 Thread Ronnie Sahlberg
Change commit.c to use ref transactions for all ref updates. Make sure we pass a NULL pointer to ref_transaction_update if have_old is false. Signed-off-by: Ronnie Sahlberg --- builtin/commit.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/builtin/