interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / packfile-list.h

29 lines · 856 bytes Raw Blame History
1#ifndef PACKFILE_LIST_H
2#define PACKFILE_LIST_H
3
4struct object_id;
5
6struct packfile_list {
7 struct packfile_list_entry *head, *tail;
8};
9
10struct packfile_list_entry {
11 struct packfile_list_entry *next;
12 struct packed_git *pack;
13};
14
15void packfile_list_clear(struct packfile_list *list);
16void packfile_list_remove(struct packfile_list *list, struct packed_git *pack);
17void packfile_list_prepend(struct packfile_list *list, struct packed_git *pack);
18void packfile_list_append(struct packfile_list *list, struct packed_git *pack,
19 int skip_dup_check);
20
21/*
22 * Find the pack within the "packs" list whose index contains the object
23 * "oid". For general object lookups, you probably don't want this; use
24 * find_pack_entry() instead.
25 */
26struct packed_git *packfile_list_find_oid(struct packfile_list_entry *packs,
27 const struct object_id *oid);
28
29#endif