diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-04-02 16:34:14 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-02 14:27:30 -0700 |
commit | f2af9f5e02380ba3868df7daa34368945d500206 (patch) | |
tree | d0d2a5d6872fb542477b87254c20e6d0cd7fe5a6 /fast-import.c | |
parent | Merge branch 'jk/cached-commit-buffer' into HEAD (diff) | |
download | tgif-f2af9f5e02380ba3868df7daa34368945d500206.tar.xz |
csum-file: rename hashclose() to finalize_hashfile()
The hashclose() method behaves very differently depending on the flags
parameter. In particular, the file descriptor is not always closed.
Perform a simple rename of "hashclose()" to "finalize_hashfile()" in
preparation for functional changes.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
-rw-r--r-- | fast-import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fast-import.c b/fast-import.c index 0f818cd932..1b58fca9f0 100644 --- a/fast-import.c +++ b/fast-import.c @@ -1016,7 +1016,7 @@ static void end_packfile(void) struct tag *t; close_pack_windows(pack_data); - hashclose(pack_file, cur_pack_oid.hash, 0); + finalize_hashfile(pack_file, cur_pack_oid.hash, 0); fixup_pack_header_footer(pack_data->pack_fd, pack_data->sha1, pack_data->pack_name, object_count, cur_pack_oid.hash, pack_size); |