diff options
author | Elijah Newren <newren@gmail.com> | 2023-04-22 22:17:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-24 21:47:31 +0200 |
commit | 0ff73d742b40bc85966d5b7dcc28f438910f771c (patch) | |
tree | 4acc4651180dda2e09a396f70ec898d293bb5aee /packfile.h | |
parent | symlinks.h: move declarations for symlinks.c functions from cache.h (diff) | |
download | git-0ff73d742b40bc85966d5b7dcc28f438910f771c.tar.xz git-0ff73d742b40bc85966d5b7dcc28f438910f771c.zip |
packfile.h: move pack_window and pack_entry from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r-- | packfile.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/packfile.h b/packfile.h index 665603b696..c3692308b8 100644 --- a/packfile.h +++ b/packfile.h @@ -6,10 +6,22 @@ /* in object-store.h */ struct packed_git; -struct pack_entry; -struct pack_window; struct object_info; +struct pack_window { + struct pack_window *next; + unsigned char *base; + off_t offset; + size_t len; + unsigned int last_used; + unsigned int inuse_cnt; +}; + +struct pack_entry { + off_t offset; + struct packed_git *p; +}; + /* * Generate the filename to be used for a pack file with checksum "sha1" and * extension "ext". The result is written into the strbuf "buf", overwriting |