git/builtin/prune.c

#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "commit.h"
#include "diff.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "revision.h"
#include "reachable.h"
#include "parse-options.h"
#include "path.h"
#include "progress.h"
#include "prune-packed.h"
#include "replace-object.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store-ll.h"
#include "shallow.h"

static const char * const prune_usage[] =;
static int show_only;
static int verbose;
static timestamp_t expire;
static int show_progress =;

static int prune_tmp_file(const char *fullpath)
{}

static void perform_reachability_traversal(struct rev_info *revs)
{}

static int is_object_reachable(const struct object_id *oid,
			       struct rev_info *revs)
{}

static int prune_object(const struct object_id *oid, const char *fullpath,
			void *data)
{}

static int prune_cruft(const char *basename, const char *path,
		       void *data UNUSED)
{}

static int prune_subdir(unsigned int nr UNUSED, const char *path,
			void *data UNUSED)
{}

/*
 * Write errors (particularly out of space) can result in
 * failed temporary packs (and more rarely indexes and other
 * files beginning with "tmp_") accumulating in the object
 * and the pack directories.
 */
static void remove_temporary_files(const char *path)
{}

int cmd_prune(int argc,
	      const char **argv,
	      const char *prefix,
	      struct repository *repo UNUSED)
{}