diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-13 15:33:33 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-20 18:38:54 -0700 |
commit | f8c8abc5b76ffd763b9c7c5e4fb054358e82ca28 (patch) | |
tree | 1c2cb22da01f358bf7f3f41311feefff3fdce883 /sha1_file.c | |
parent | 5266d369b21f8c260fa60d94fb29c3998c521e4a (diff) | |
download | git-f8c8abc5b76ffd763b9c7c5e4fb054358e82ca28.tar.gz |
unpack_object_header(): make it public
This function is used to read and skip over the per-object header
in a packfile.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sha1_file.c b/sha1_file.c index 1d6f93d5d3..a28683aaf0 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1523,10 +1523,10 @@ static int packed_delta_info(struct packed_git *p, return type; } -static int unpack_object_header(struct packed_git *p, - struct pack_window **w_curs, - off_t *curpos, - unsigned long *sizep) +int unpack_object_header(struct packed_git *p, + struct pack_window **w_curs, + off_t *curpos, + unsigned long *sizep) { unsigned char *base; unsigned int left; |