]> git.ipfire.org Git - thirdparty/git.git/blame - patch-ids.h
t1700-split-index: document why FSMONITOR is disabled in this test script
[thirdparty/git.git] / patch-ids.h
CommitLineData
5d23e133
JH
1#ifndef PATCH_IDS_H
2#define PATCH_IDS_H
3
ef3ca954
EN
4#include "diff.h"
5#include "hashmap.h"
6
7struct commit;
8struct object_id;
9
5d23e133 10struct patch_id {
dfb7a1b4 11 struct hashmap_entry ent;
34f3c0eb 12 struct object_id patch_id;
683f17ec 13 struct commit *commit;
5d23e133
JH
14};
15
16struct patch_ids {
dfb7a1b4 17 struct hashmap patches;
5d23e133 18 struct diff_options diffopts;
5d23e133
JH
19};
20
ded2c097 21int commit_patch_id(struct commit *commit, struct diff_options *options,
34f3c0eb 22 struct object_id *oid, int);
5d23e133
JH
23int init_patch_ids(struct patch_ids *);
24int free_patch_ids(struct patch_ids *);
25struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
26struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);
27
28#endif /* PATCH_IDS_H */