]>
Commit | Line | Data |
---|---|---|
5d23e133 JH |
1 | #ifndef PATCH_IDS_H |
2 | #define PATCH_IDS_H | |
3 | ||
ef3ca954 EN |
4 | #include "diff.h" |
5 | #include "hashmap.h" | |
6 | ||
7 | struct commit; | |
8 | struct object_id; | |
a7edadda | 9 | struct repository; |
ef3ca954 | 10 | |
5d23e133 | 11 | struct patch_id { |
dfb7a1b4 | 12 | struct hashmap_entry ent; |
34f3c0eb | 13 | struct object_id patch_id; |
683f17ec | 14 | struct commit *commit; |
5d23e133 JH |
15 | }; |
16 | ||
17 | struct patch_ids { | |
dfb7a1b4 | 18 | struct hashmap patches; |
5d23e133 | 19 | struct diff_options diffopts; |
5d23e133 JH |
20 | }; |
21 | ||
ded2c097 | 22 | int commit_patch_id(struct commit *commit, struct diff_options *options, |
a8f6855f | 23 | struct object_id *oid, int, int); |
a7edadda | 24 | int init_patch_ids(struct repository *, struct patch_ids *); |
5d23e133 JH |
25 | int free_patch_ids(struct patch_ids *); |
26 | struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *); | |
27 | struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *); | |
28 | ||
29 | #endif /* PATCH_IDS_H */ |