]>
git.ipfire.org Git - thirdparty/git.git/blob - refs/packed-backend.h
1 #ifndef REFS_PACKED_BACKEND_H
2 #define REFS_PACKED_BACKEND_H
4 struct ref_store
*packed_ref_store_create(const char *path
,
5 unsigned int store_flags
);
8 * Lock the packed-refs file for writing. Flags is passed to
9 * hold_lock_file_for_update(). Return 0 on success. On errors, set
10 * errno appropriately and return a nonzero value.
12 int lock_packed_refs(struct ref_store
*ref_store
, int flags
);
14 void add_packed_ref(struct ref_store
*ref_store
,
15 const char *refname
, const struct object_id
*oid
);
17 int commit_packed_refs(struct ref_store
*ref_store
);
19 int repack_without_refs(struct ref_store
*ref_store
,
20 struct string_list
*refnames
, struct strbuf
*err
);
22 #endif /* REFS_PACKED_BACKEND_H */