doc: fix wrong 4-byte length of pkt-line message
[git.git] / patch-ids.h
blob03bb04e7071f5f65a3b09f138aa4473fa0a0a655
1 #ifndef PATCH_IDS_H
2 #define PATCH_IDS_H
4 #include "diff.h"
5 #include "hashmap.h"
7 struct commit;
8 struct object_id;
9 struct repository;
11 struct patch_id {
12 struct hashmap_entry ent;
13 struct object_id patch_id;
14 struct commit *commit;
17 struct patch_ids {
18 struct hashmap patches;
19 struct diff_options diffopts;
22 int commit_patch_id(struct commit *commit, struct diff_options *options,
23 struct object_id *oid, int, int);
24 int init_patch_ids(struct repository *, struct patch_ids *);
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 *);
29 #endif /* PATCH_IDS_H */