Skip to content

Commit f8c8abc

Browse files
committed
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 <[email protected]>
1 parent 5266d36 commit f8c8abc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cache.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsign
10211021
extern unsigned long unpack_object_header_buffer(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep);
10221022
extern unsigned long get_size_from_delta(struct packed_git *, struct pack_window **, off_t);
10231023
extern int packed_object_info_detail(struct packed_git *, off_t, unsigned long *, unsigned long *, unsigned int *, unsigned char *);
1024+
extern int unpack_object_header(struct packed_git *, struct pack_window **, off_t *, unsigned long *);
10241025

10251026
struct object_info {
10261027
/* Request */

sha1_file.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,10 +1523,10 @@ static int packed_delta_info(struct packed_git *p,
15231523
return type;
15241524
}
15251525

1526-
static int unpack_object_header(struct packed_git *p,
1527-
struct pack_window **w_curs,
1528-
off_t *curpos,
1529-
unsigned long *sizep)
1526+
int unpack_object_header(struct packed_git *p,
1527+
struct pack_window **w_curs,
1528+
off_t *curpos,
1529+
unsigned long *sizep)
15301530
{
15311531
unsigned char *base;
15321532
unsigned int left;

0 commit comments

Comments
 (0)