sha1_file: consolidate code to close a pack's file descriptor
commit71fe5d7fb03c0db6edcae39a0312bae2c014a818
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 5 Oct 2015 20:30:24 +0000 (5 22:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 21:43:58 +0000 (5 14:43 -0700)
treeabb7763577d903947ccc9e09b0d5f2de0fdac51a
parent11911bf7c4b4346013be9eefad257a009b659dd2
sha1_file: consolidate code to close a pack's file descriptor

There was a lot of repeated code to close the file descriptor of
a given pack. Let's just refactor this code into a single function.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c