diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-06-20 07:42:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-14 11:54:40 -0700 |
commit | 1b07255c95cdf2f7dbe7989a734248f60799f506 (patch) | |
tree | c05e1687a763576505059600c7303d7711e5da92 /t/t5515/refs.master_remote-glob | |
parent | refs.c: constify the sha arguments for ref_transaction_create|delete|update (diff) | |
download | tgif-1b07255c95cdf2f7dbe7989a734248f60799f506.tar.xz |
refs.c: allow passing NULL to ref_transaction_free
Allow ref_transaction_free(NULL) as a no-op. This makes ref_transaction_free
easier to use and more similar to plain 'free'.
In particular, it lets us rollback unconditionally as part of cleanup code
after setting 'transaction = NULL' if a transaction has been committed or
rolled back already.
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 't/t5515/refs.master_remote-glob')
0 files changed, 0 insertions, 0 deletions