summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-28 11:52:14 -0700
committerJunio C Hamano <gitster@pobox.com>2011-10-28 11:52:14 -0700
commitcdf9db3c83618453809d6a584d1a0db19b3e189f (patch)
treedae91f3adac1efa60acfc501c1b9adf16b79156d /pack.h
parentc0ad465725302b9411e53d248871c36880b6f8fd (diff)
downloadgit-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pack.h b/pack.h
index d429d8a668..0027ac6149 100644
--- a/pack.h
+++ b/pack.h
@@ -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