]> git.ipfire.org Git - thirdparty/git.git/commit - refs/files-backend.c
files_transaction_cleanup(): new helper function
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 May 2017 14:17:42 +0000 (16:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 May 2017 05:29:55 +0000 (14:29 +0900)
commitc0ca9357640ae5efbdbfed4c5b476c820a839e85
tree294b2881d00573adda19ecbd361754b51dd0a034
parent00d174489e9905411dbae5f895758f2ca489bd9f
files_transaction_cleanup(): new helper function

Extract the cleanup functionality from `files_transaction_commit()`
into a new function. It will soon have another caller.

Use the common cleanup code even on early exit if the transaction is
empty, to reduce code duplication.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c