refs.c: add transaction.status and track OPEN/CLOSED
commit2bdc785fd7f699669a582f7a83f5b81192d24d88
authorRonnie Sahlberg <sahlberg@google.com>
Tue, 29 Apr 2014 19:06:19 +0000 (29 12:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2014 17:04:09 +0000 (3 10:04 -0700)
tree6e03d90eb2480920228e31f2580b4622236baf0b
parent93a644ea9d3702cc1cc62c0d413f81f8e46fabe7
refs.c: add transaction.status and track OPEN/CLOSED

Track the state of a transaction in a new state field. Check the field for
sanity, i.e. that state must be OPEN when _commit/_create/_delete or
_update is called or else die(BUG:...)

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>
refs.c