patch-ids.hon commit object: convert create_object() to use object_id (a378509)
   1#ifndef PATCH_IDS_H
   2#define PATCH_IDS_H
   3
   4#include "diff.h"
   5#include "hashmap.h"
   6
   7struct commit;
   8struct object_id;
   9struct repository;
  10
  11struct patch_id {
  12        struct hashmap_entry ent;
  13        struct object_id patch_id;
  14        struct commit *commit;
  15};
  16
  17struct patch_ids {
  18        struct hashmap patches;
  19        struct diff_options diffopts;
  20};
  21
  22int commit_patch_id(struct commit *commit, struct diff_options *options,
  23                    struct object_id *oid, int, int);
  24int init_patch_ids(struct repository *, struct patch_ids *);
  25int free_patch_ids(struct patch_ids *);
  26struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
  27struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);
  28
  29#endif /* PATCH_IDS_H */