patch-ids.hon commit doc/SubmittingPatches: show how to get a CLI commit summary (48a9697)
   1#ifndef PATCH_IDS_H
   2#define PATCH_IDS_H
   3
   4struct patch_id {
   5        struct hashmap_entry ent;
   6        unsigned char patch_id[GIT_SHA1_RAWSZ];
   7        struct commit *commit;
   8};
   9
  10struct patch_ids {
  11        struct hashmap patches;
  12        struct diff_options diffopts;
  13};
  14
  15int commit_patch_id(struct commit *commit, struct diff_options *options,
  16                    unsigned char *sha1, int);
  17int init_patch_ids(struct patch_ids *);
  18int free_patch_ids(struct patch_ids *);
  19struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
  20struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);
  21
  22#endif /* PATCH_IDS_H */