diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-28 11:52:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-28 11:52:14 -0700 |
commit | cdf9db3c83618453809d6a584d1a0db19b3e189f (patch) | |
tree | dae91f3adac1efa60acfc501c1b9adf16b79156d /pack.h | |
parent | c0ad465725302b9411e53d248871c36880b6f8fd (diff) | |
download | git-cdf9db3c83618453809d6a584d1a0db19b3e189f.tar.gz |
create_tmp_packfile(): a helper function
Factor out a small logic out of the private write_pack_file() function
in builtin/pack-objects.c
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack.h')
-rw-r--r-- | pack.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -84,4 +84,7 @@ extern int encode_in_pack_object_header(enum object_type, uintmax_t, unsigned ch #define PH_ERROR_PACK_SIGNATURE (-2) #define PH_ERROR_PROTOCOL (-3) extern int read_pack_header(int fd, struct pack_header *); + +extern struct sha1file *create_tmp_packfile(char **pack_tmp_name); + #endif |