pack: move pack name-related functions
commit4f39cd821d1756f5f6d145f987576660136931ee
authorJonathan Tan <jonathantanmy@google.com>
Fri, 18 Aug 2017 22:20:16 +0000 (18 15:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Aug 2017 22:12:06 +0000 (23 15:12 -0700)
treec7a0b1de6a17b1336f82bbbd598d766e6d0030e3
parent39566494226919aa18951f2abff6491f5547d377
pack: move pack name-related functions

Currently, sha1_file.c and cache.h contain many functions, both related
to and unrelated to packfiles. This makes both files very large and
causes an unclear separation of concerns.

Create a new file, packfile.c, to hold all packfile-related functions
currently in sha1_file.c. It has a corresponding header packfile.h.

In this commit, the pack name-related functions are moved. Subsequent
commits will move the other functions.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
builtin/index-pack.c
builtin/pack-redundant.c
cache.h
fast-import.c
http.c
outgoing/packfile.h [new file with mode: 0644]
packfile.c [new file with mode: 0644]
packfile.h [new file with mode: 0644]
sha1_file.c