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