2007-04-10 02:01:27 +02:00
|
|
|
#ifndef PATCH_IDS_H
|
|
|
|
#define PATCH_IDS_H
|
|
|
|
|
2018-08-15 19:54:05 +02:00
|
|
|
#include "diff.h"
|
|
|
|
#include "hashmap.h"
|
|
|
|
|
|
|
|
struct commit;
|
|
|
|
struct object_id;
|
2018-09-21 17:57:30 +02:00
|
|
|
struct repository;
|
2018-08-15 19:54:05 +02:00
|
|
|
|
2007-04-10 02:01:27 +02:00
|
|
|
struct patch_id {
|
2016-07-29 18:19:17 +02:00
|
|
|
struct hashmap_entry ent;
|
2017-05-30 19:30:53 +02:00
|
|
|
struct object_id patch_id;
|
2016-07-29 18:19:18 +02:00
|
|
|
struct commit *commit;
|
2007-04-10 02:01:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct patch_ids {
|
2016-07-29 18:19:17 +02:00
|
|
|
struct hashmap patches;
|
2007-04-10 02:01:27 +02:00
|
|
|
struct diff_options diffopts;
|
|
|
|
};
|
|
|
|
|
2016-04-26 09:51:21 +02:00
|
|
|
int commit_patch_id(struct commit *commit, struct diff_options *options,
|
2019-04-27 01:51:57 +02:00
|
|
|
struct object_id *oid, int, int);
|
2018-09-21 17:57:30 +02:00
|
|
|
int init_patch_ids(struct repository *, struct patch_ids *);
|
2007-04-10 02:01:27 +02:00
|
|
|
int free_patch_ids(struct patch_ids *);
|
|
|
|
struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
|
|
|
|
struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);
|
|
|
|
|
|
|
|
#endif /* PATCH_IDS_H */
|