2007-04-10 08:01:27 +08:00
|
|
|
#ifndef PATCH_IDS_H
|
|
|
|
#define PATCH_IDS_H
|
|
|
|
|
|
|
|
struct patch_id {
|
2016-07-30 00:19:17 +08:00
|
|
|
struct hashmap_entry ent;
|
2017-05-31 01:30:53 +08:00
|
|
|
struct object_id patch_id;
|
2016-07-30 00:19:18 +08:00
|
|
|
struct commit *commit;
|
2007-04-10 08:01:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct patch_ids {
|
2016-07-30 00:19:17 +08:00
|
|
|
struct hashmap patches;
|
2007-04-10 08:01:27 +08:00
|
|
|
struct diff_options diffopts;
|
|
|
|
};
|
|
|
|
|
2016-04-26 15:51:21 +08:00
|
|
|
int commit_patch_id(struct commit *commit, struct diff_options *options,
|
2017-05-31 01:30:53 +08:00
|
|
|
struct object_id *oid, int);
|
2007-04-10 08:01:27 +08:00
|
|
|
int init_patch_ids(struct patch_ids *);
|
|
|
|
int free_patch_ids(struct patch_ids *);
|
|
|
|
struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
|
|
|
|
struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);
|
|
|
|
|
|
|
|
#endif /* PATCH_IDS_H */
|