git/parse-options-cb.c

#define USE_THE_REPOSITORY_VARIABLE

#include "git-compat-util.h"
#include "parse-options.h"
#include "branch.h"
#include "commit.h"
#include "color.h"
#include "date.h"
#include "environment.h"
#include "gettext.h"
#include "object-name.h"
#include "setup.h"
#include "string-list.h"
#include "strvec.h"
#include "oid-array.h"

/*----- some often used options -----*/

int parse_opt_abbrev_cb(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_expiry_date_cb(const struct option *opt, const char *arg,
			     int unset)
{}

int parse_opt_color_flag_cb(const struct option *opt, const char *arg,
			    int unset)
{}

int parse_opt_verbosity_cb(const struct option *opt, const char *arg,
			   int unset)
{}

int parse_opt_commits(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_commit(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_object_name(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_object_id(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_tertiary(const struct option *opt, const char *arg, int unset)
{}

static size_t parse_options_count(const struct option *opt)
{}

struct option *parse_options_dup(const struct option *o)
{}

struct option *parse_options_concat(const struct option *a,
				    const struct option *b)
{}

int parse_opt_string_list(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_strvec(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_noop_cb(const struct option *opt UNUSED,
		      const char *arg UNUSED,
		      int unset UNUSED)
{}

/**
 * Recreates the command-line option in the strbuf.
 */
static int recreate_opt(struct strbuf *sb, const struct option *opt,
		const char *arg, int unset)
{}

/**
 * For an option opt, recreates the command-line option in opt->value which
 * must be an char* initialized to NULL. This is useful when we need to pass
 * the command-line option to another command. Since any previous value will be
 * overwritten, this callback should only be used for options where the last
 * one wins.
 */
int parse_opt_passthru(const struct option *opt, const char *arg, int unset)
{}

/**
 * For an option opt, recreate the command-line option, appending it to
 * opt->value which must be a strvec. This is useful when we need to pass
 * the command-line option, which can be specified multiple times, to another
 * command.
 */
int parse_opt_passthru_argv(const struct option *opt, const char *arg, int unset)
{}

int parse_opt_tracking_mode(const struct option *opt, const char *arg, int unset)
{}