git/builtin/shortlog.c

#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
#include "commit.h"
#include "diff.h"
#include "environment.h"
#include "gettext.h"
#include "string-list.h"
#include "revision.h"
#include "utf8.h"
#include "mailmap.h"
#include "setup.h"
#include "shortlog.h"
#include "parse-options.h"
#include "trailer.h"
#include "strmap.h"

static char const * const shortlog_usage[] =;

/*
 * The util field of our string_list_items will contain one of two things:
 *
 *   - if --summary is not in use, it will point to a string list of the
 *     oneline subjects assigned to this author
 *
 *   - if --summary is in use, we don't need that list; we only need to know
 *     its size. So we abuse the pointer slot to store our integer counter.
 *
 *  This macro accesses the latter.
 */
#define UTIL_TO_INT(x)

static int compare_by_counter(const void *a1, const void *a2)
{}

static int compare_by_list(const void *a1, const void *a2)
{}

static void insert_one_record(struct shortlog *log,
			      const char *ident,
			      const char *oneline)
{}

static int parse_ident(struct shortlog *log,
		       struct strbuf *out, const char *in)
{}

static void read_from_stdin(struct shortlog *log)
{}

static void insert_records_from_trailers(struct shortlog *log,
					 struct strset *dups,
					 struct commit *commit,
					 struct pretty_print_context *ctx,
					 const char *oneline)
{}

static int shortlog_needs_dedup(const struct shortlog *log)
{}

static void insert_records_from_format(struct shortlog *log,
				       struct strset *dups,
				       struct commit *commit,
				       struct pretty_print_context *ctx,
				       const char *oneline)
{}

void shortlog_add_commit(struct shortlog *log, struct commit *commit)
{}

static void get_from_rev(struct rev_info *rev, struct shortlog *log)
{}

static int parse_uint(char const **arg, int comma, int defval)
{}

static const char wrap_arg_usage[] =;
#define DEFAULT_WRAPLEN
#define DEFAULT_INDENT1
#define DEFAULT_INDENT2

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

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


void shortlog_init(struct shortlog *log)
{}

void shortlog_finish_setup(struct shortlog *log)
{}

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

static void add_wrapped_shortlog_msg(struct strbuf *sb, const char *s,
				     const struct shortlog *log)
{}

void shortlog_output(struct shortlog *log)
{}