#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
#include "editor.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "notes.h"
#include "object-name.h"
#include "object-store-ll.h"
#include "path.h"
#include "pretty.h"
#include "refs.h"
#include "exec-cmd.h"
#include "run-command.h"
#include "parse-options.h"
#include "string-list.h"
#include "notes-merge.h"
#include "notes-utils.h"
#include "worktree.h"
#include "write-or-die.h"
static const char *separator = …;
static const char * const git_notes_usage[] = …;
static const char * const git_notes_list_usage[] = …;
static const char * const git_notes_add_usage[] = …;
static const char * const git_notes_copy_usage[] = …;
static const char * const git_notes_append_usage[] = …;
static const char * const git_notes_edit_usage[] = …;
static const char * const git_notes_show_usage[] = …;
static const char * const git_notes_merge_usage[] = …;
static const char * const git_notes_remove_usage[] = …;
static const char * const git_notes_prune_usage[] = …;
static const char * const git_notes_get_ref_usage[] = …;
static const char note_template[] = …);
enum notes_stripspace { … };
struct note_msg { … };
struct note_data { … };
static void free_note_data(struct note_data *d)
{ … }
static int list_each_note(const struct object_id *object_oid,
const struct object_id *note_oid,
char *note_path UNUSED,
void *cb_data UNUSED)
{ … }
static void copy_obj_to_fd(int fd, const struct object_id *oid)
{ … }
static void write_commented_object(int fd, const struct object_id *object)
{ … }
static void prepare_note_data(const struct object_id *object, struct note_data *d,
const struct object_id *old_note)
{ … }
static void write_note_data(struct note_data *d, struct object_id *oid)
{ … }
static void append_separator(struct strbuf *message)
{ … }
static void concat_messages(struct note_data *d)
{ … }
static int parse_msg_arg(const struct option *opt, const char *arg, int unset)
{ … }
static int parse_file_arg(const struct option *opt, const char *arg, int unset)
{ … }
static int parse_reuse_arg(const struct option *opt, const char *arg, int unset)
{ … }
static int parse_reedit_arg(const struct option *opt, const char *arg, int unset)
{ … }
static int parse_separator_arg(const struct option *opt, const char *arg,
int unset)
{ … }
static int notes_copy_from_stdin(int force, const char *rewrite_cmd)
{ … }
static struct notes_tree *init_notes_check(const char *subcommand,
int flags)
{ … }
static int list(int argc, const char **argv, const char *prefix)
{ … }
static int append_edit(int argc, const char **argv, const char *prefix);
static int add(int argc, const char **argv, const char *prefix)
{ … }
static int copy(int argc, const char **argv, const char *prefix)
{ … }
static int append_edit(int argc, const char **argv, const char *prefix)
{ … }
static int show(int argc, const char **argv, const char *prefix)
{ … }
static int merge_abort(struct notes_merge_options *o)
{ … }
static int merge_commit(struct notes_merge_options *o)
{ … }
static int git_config_get_notes_strategy(const char *key,
enum notes_merge_strategy *strategy)
{ … }
static int merge(int argc, const char **argv, const char *prefix)
{ … }
#define IGNORE_MISSING …
static int remove_one_note(struct notes_tree *t, const char *name, unsigned flag)
{ … }
static int remove_cmd(int argc, const char **argv, const char *prefix)
{ … }
static int prune(int argc, const char **argv, const char *prefix)
{ … }
static int get_ref(int argc, const char **argv, const char *prefix)
{ … }
int cmd_notes(int argc,
const char **argv,
const char *prefix,
struct repository *repo UNUSED)
{ … }