summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-03-14 15:27:24 -0400
committerJunio C Hamano <gitster@pobox.com>2018-03-14 13:58:14 -0700
commitf4e3487db6b289946b3e15dbbb3f774f4c65aa64 (patch)
tree6f64a9ccff4777e87bd43fdf8e051a215048ae63 /commit.c
parente8b2dda9eea466263da041a16b7d0f62c8db84d9 (diff)
downloadgit-f4e3487db6b289946b3e15dbbb3f774f4c65aa64.tar.gz
csum-file: refactor finalize_hashfile() method
If we want to use a hashfile on the temporary file for a lockfile, then we need finalize_hashfile() to fully write the trailing hash but also keep the file descriptor open. Do this by adding a new CSUM_HASH_IN_STREAM flag along with a functional change that checks this flag before writing the checksum to the stream. This differs from previous behavior since it would be written if either CSUM_CLOSE or CSUM_FSYNC is provided. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions