#include "git-compat-util.h"
#include "diff.h"
#include "commit.h"
#include "hash.h"
#include "hex.h"
#include "patch-ids.h"
static int patch_id_defined(struct commit *commit)
{ … }
int commit_patch_id(struct commit *commit, struct diff_options *options,
struct object_id *oid, int diff_header_only)
{ … }
static int patch_id_neq(const void *cmpfn_data,
const struct hashmap_entry *eptr,
const struct hashmap_entry *entry_or_key,
const void *keydata UNUSED)
{ … }
int init_patch_ids(struct repository *r, struct patch_ids *ids)
{ … }
int free_patch_ids(struct patch_ids *ids)
{ … }
static int init_patch_id_entry(struct patch_id *patch,
struct commit *commit,
struct patch_ids *ids)
{ … }
struct patch_id *patch_id_iter_first(struct commit *commit,
struct patch_ids *ids)
{ … }
struct patch_id *patch_id_iter_next(struct patch_id *cur,
struct patch_ids *ids)
{ … }
int has_commit_patch_id(struct commit *commit,
struct patch_ids *ids)
{ … }
struct patch_id *add_commit_patch_id(struct commit *commit,
struct patch_ids *ids)
{ … }