pack: move unuse_pack()
Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
84f80ad5e1
commit
97de1803f8
@ -596,3 +596,12 @@ unsigned char *use_pack(struct packed_git *p,
|
||||
*left = win->len - xsize_t(offset);
|
||||
return win->base + offset;
|
||||
}
|
||||
|
||||
void unuse_pack(struct pack_window **w_cursor)
|
||||
{
|
||||
struct pack_window *w = *w_cursor;
|
||||
if (w) {
|
||||
w->inuse_cnt--;
|
||||
*w_cursor = NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user