[PATCH v8 15/44] commit.c: use ref transactions for updates

2014-05-15 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 sahlb...@google.com --- builtin/commit.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-)

Re: [PATCH v8 15/44] commit.c: use ref transactions for updates

2014-05-15 Thread Jonathan Nieder
Ronnie Sahlberg wrote: 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. Once ref_transaction_begin() and ref_transaction_update() set err, this will always have a reasonable message to print in die().