commit.c: use ref transactions for updates
commitc0fe1ed0841868989c088681e1263f248629e92f
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 16 Apr 2014 22:34:19 +0000 (16 15:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2014 17:04:11 +0000 (3 10:04 -0700)
treeed851d13fd4b8570cd4aa3b478636f53c555979d
parent867c2fac0aef75d8c883010780eb163e82aaa266
commit.c: use ref transactions for updates

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 <sahlberg@google.com>
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c