#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "commit.h"
#include "blob.h"
#include "diff.h"
#include "revision.h"
#include "reachable.h"
#include "cache-tree.h"
#include "progress.h"
#include "list-objects.h"
#include "packfile.h"
#include "worktree.h"
#include "object-store-ll.h"
#include "pack-bitmap.h"
#include "pack-mtimes.h"
#include "config.h"
#include "run-command.h"
#include "sequencer.h"
struct connectivity_progress { … };
static void update_progress(struct connectivity_progress *cp)
{ … }
static void add_one_file(const char *path, struct rev_info *revs)
{ … }
static void add_rebase_files(struct rev_info *revs)
{ … }
static int add_one_ref(const char *path, const char *referent UNUSED, const struct object_id *oid,
int flag, void *cb_data)
{ … }
static void mark_object(struct object *obj UNUSED,
const char *name UNUSED,
void *data)
{ … }
static void mark_commit(struct commit *c, void *data)
{ … }
struct recent_data { … };
static int run_one_gc_recent_objects_hook(struct oidset *set,
const char *args)
{ … }
static void load_gc_recent_objects(struct recent_data *data)
{ … }
static int obj_is_recent(const struct object_id *oid, timestamp_t mtime,
struct recent_data *data)
{ … }
static void add_recent_object(const struct object_id *oid,
struct packed_git *pack,
off_t offset,
timestamp_t mtime,
struct recent_data *data)
{ … }
static int want_recent_object(struct recent_data *data,
const struct object_id *oid)
{ … }
static int add_recent_loose(const struct object_id *oid,
const char *path, void *data)
{ … }
static int add_recent_packed(const struct object_id *oid,
struct packed_git *p,
uint32_t pos,
void *data)
{ … }
int add_unseen_recent_objects_to_traversal(struct rev_info *revs,
timestamp_t timestamp,
report_recent_object_fn *cb,
int ignore_in_core_kept_packs)
{ … }
static int mark_object_seen(const struct object_id *oid,
enum object_type type,
int exclude UNUSED,
uint32_t name_hash UNUSED,
struct packed_git *found_pack UNUSED,
off_t found_offset UNUSED)
{ … }
void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
timestamp_t mark_recent, struct progress *progress)
{ … }