git/builtin/remote.c

#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "parse-options.h"
#include "path.h"
#include "transport.h"
#include "remote.h"
#include "string-list.h"
#include "strbuf.h"
#include "run-command.h"
#include "rebase.h"
#include "refs.h"
#include "refspec.h"
#include "object-store-ll.h"
#include "strvec.h"
#include "commit-reach.h"
#include "progress.h"

static const char * const builtin_remote_usage[] =;

static const char * const builtin_remote_add_usage[] =;

static const char * const builtin_remote_rename_usage[] =;

static const char * const builtin_remote_rm_usage[] =;

static const char * const builtin_remote_sethead_usage[] =;

static const char * const builtin_remote_setbranches_usage[] =;

static const char * const builtin_remote_show_usage[] =;

static const char * const builtin_remote_prune_usage[] =;

static const char * const builtin_remote_update_usage[] =;

static const char * const builtin_remote_geturl_usage[] =;

static const char * const builtin_remote_seturl_usage[] =;

#define GET_REF_STATES
#define GET_HEAD_NAMES
#define GET_PUSH_REF_STATES

static int verbose;

static int fetch_remote(const char *name)
{}

enum {};

#define MIRROR_NONE
#define MIRROR_FETCH
#define MIRROR_PUSH
#define MIRROR_BOTH

static void add_branch(const char *key, const char *branchname,
		       const char *remotename, int mirror, struct strbuf *tmp)
{}

static const char mirror_advice[] =);

static int parse_mirror_opt(const struct option *opt, const char *arg, int not)
{}

static int add(int argc, const char **argv, const char *prefix)
{}

struct branch_info {};

static struct string_list branch_list =;

static const char *abbrev_ref(const char *name, const char *prefix)
{}
#define abbrev_branch(name)

static int config_read_branches(const char *key, const char *value,
				const struct config_context *ctx UNUSED,
				void *data UNUSED)
{}

static void read_branches(void)
{}

struct ref_states {};

#define REF_STATES_INIT

static int get_ref_states(const struct ref *remote_refs, struct ref_states *states)
{}

struct push_info {};

static int get_push_ref_states(const struct ref *remote_refs,
	struct ref_states *states)
{}

static int get_push_ref_states_noquery(struct ref_states *states)
{}

static int get_head_names(const struct ref *remote_refs, struct ref_states *states)
{}

struct known_remote {};

struct known_remotes {};

static int add_known_remote(struct remote *remote, void *cb_data)
{}

struct branches_for_remote {};

static int add_branch_for_removal(const char *refname,
				  const char *referent UNUSED,
				  const struct object_id *oid UNUSED,
				  int flags UNUSED, void *cb_data)
{}

struct rename_info {};

static int read_remote_branches(const char *refname, const char *referent UNUSED,
				const struct object_id *oid UNUSED,
				int flags UNUSED, void *cb_data)
{}

static int migrate_file(struct remote *remote)
{}

struct push_default_info
{};

static int config_read_push_default(const char *key, const char *value,
	const struct config_context *ctx, void *cb)
{}

static void handle_push_default(const char* old_name, const char* new_name)
{}


static int mv(int argc, const char **argv, const char *prefix)
{}

static int rm(int argc, const char **argv, const char *prefix)
{}

static void clear_push_info(void *util, const char *string UNUSED)
{}

static void free_remote_ref_states(struct ref_states *states)
{}

static int append_ref_to_tracked_list(const char *refname,
				      const char *referent UNUSED,
				      const struct object_id *oid UNUSED,
				      int flags, void *cb_data)
{}

static int get_remote_ref_states(const char *name,
				 struct ref_states *states,
				 int query)
{}

struct show_info {};

#define SHOW_INFO_INIT

static int add_remote_to_show_info(struct string_list_item *item, void *cb_data)
{}

static int show_remote_info_item(struct string_list_item *item, void *cb_data)
{}

static int add_local_to_show_info(struct string_list_item *branch_item, void *cb_data)
{}

static int show_local_info_item(struct string_list_item *item, void *cb_data)
{}

static int add_push_to_show_info(struct string_list_item *push_item, void *cb_data)
{}

/*
 * Sorting comparison for a string list that has push_info
 * structs in its util field
 */
static int cmp_string_with_push(const void *va, const void *vb)
{}

static int show_push_info_item(struct string_list_item *item, void *cb_data)
{}

static int get_one_entry(struct remote *remote, void *priv)
{}

static int show_all(void)
{}

static int show(int argc, const char **argv, const char *prefix)
{}

static int set_head(int argc, const char **argv, const char *prefix)
{}

static int prune_remote(const char *remote, int dry_run)
{}

static int prune(int argc, const char **argv, const char *prefix)
{}

static int get_remote_default(const char *key, const char *value UNUSED,
			      const struct config_context *ctx UNUSED,
			      void *priv)
{}

static int update(int argc, const char **argv, const char *prefix)
{}

static int remove_all_fetch_refspecs(const char *key)
{}

static void add_branches(struct remote *remote, const char **branches,
			 const char *key)
{}

static int set_remote_branches(const char *remotename, const char **branches,
				int add_mode)
{}

static int set_branches(int argc, const char **argv, const char *prefix)
{}

static int get_url(int argc, const char **argv, const char *prefix)
{}

static int set_url(int argc, const char **argv, const char *prefix)
{}

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