diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-06-20 16:42:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-14 20:54:40 +0200 |
commit | 33f9fc593247322ddea5515f548a06cf34d12c2f (patch) | |
tree | 78af5fff143a5c987539b4733ab05a2422fd0f74 /refs.h | |
parent | refs.c: remove ref_transaction_rollback (diff) | |
download | git-33f9fc593247322ddea5515f548a06cf34d12c2f.tar.xz git-33f9fc593247322ddea5515f548a06cf34d12c2f.zip |
refs.c: ref_transaction_commit should not free the transaction
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 '')
-rw-r--r-- | refs.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -219,8 +219,7 @@ enum action_on_err { /* * Begin a reference transaction. The reference transaction must - * eventually be commited using ref_transaction_commit() or freed by - * calling ref_transaction_free(). + * be freed by calling ref_transaction_free(). */ struct ref_transaction *ref_transaction_begin(void); @@ -268,7 +267,7 @@ void ref_transaction_delete(struct ref_transaction *transaction, /* * Commit all of the changes that have been queued in transaction, as * atomically as possible. Return a nonzero value if there is a - * problem. The ref_transaction is freed by this function. + * problem. */ int ref_transaction_commit(struct ref_transaction *transaction, const char *msg, enum action_on_err onerr); |