diff: finish conversion for prepare_temp_file to struct object_id
[git/git.git] / patch-ids.h
CommitLineData
5d23e133
JH
1#ifndef PATCH_IDS_H
2#define PATCH_IDS_H
3
4struct patch_id {
dfb7a1b4 5 struct hashmap_entry ent;
cd02599c 6 unsigned char patch_id[GIT_MAX_RAWSZ];
683f17ec 7 struct commit *commit;
5d23e133
JH
8};
9
10struct patch_ids {
dfb7a1b4 11 struct hashmap patches;
5d23e133 12 struct diff_options diffopts;
5d23e133
JH
13};
14
ded2c097 15int commit_patch_id(struct commit *commit, struct diff_options *options,
b3dfeebb 16 unsigned char *sha1, int);
5d23e133
JH
17int init_patch_ids(struct patch_ids *);
18int free_patch_ids(struct patch_ids *);
19struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
20struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);
21
22#endif /* PATCH_IDS_H */