mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
There are multiple sites in "delta-islands.c" where we use the global `the_repository` variable, either explicitly or implicitly by using `the_hash_algo`. Refactor the code to stop using `the_repository`. In most cases this is trivial because we already had a repository available in the calling context, with the only exception being `propagate_island_marks()`. Adapt it so that the repository gets passed in via a parameter. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 lines
624 B
C
20 lines
624 B
C
#ifndef DELTA_ISLANDS_H
|
|
#define DELTA_ISLANDS_H
|
|
|
|
struct commit;
|
|
struct object_id;
|
|
struct packing_data;
|
|
struct repository;
|
|
|
|
int island_delta_cmp(const struct object_id *a, const struct object_id *b);
|
|
int in_same_island(const struct object_id *, const struct object_id *);
|
|
void resolve_tree_islands(struct repository *r,
|
|
int progress,
|
|
struct packing_data *to_pack);
|
|
void load_delta_islands(struct repository *r, int progress);
|
|
void propagate_island_marks(struct repository *r, struct commit *commit);
|
|
int compute_pack_layers(struct packing_data *to_pack);
|
|
void free_island_marks(void);
|
|
|
|
#endif /* DELTA_ISLANDS_H */
|