#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "config.h" #include "diff.h" #include "gettext.h" #include "hash.h" #include "hex.h" #include "parse-options.h" #include "setup.h" static void flush_current_id(int patchlen, struct object_id *id, struct object_id *result) { … } static int remove_space(char *line) { … } static int scan_hunk_header(const char *p, int *p_before, int *p_after) { … } static int get_one_patchid(struct object_id *next_oid, struct object_id *result, struct strbuf *line_buf, int stable, int verbatim) { … } static void generate_id_list(int stable, int verbatim) { … } static const char *const patch_id_usage[] = …; struct patch_id_opts { … }; static int git_patch_id_config(const char *var, const char *value, const struct config_context *ctx, void *cb) { … } int cmd_patch_id(int argc, const char **argv, const char *prefix, struct repository *repo UNUSED) { … }