commit-graph write: add progress output
[gitweb.git] / patch-ids.h
index 9569ee0d26c5cfb3ad176d54a97440739fd2ad55..79ac9a8498383b971107f4b30a7a75dbd30613d1 100644 (file)
@@ -1,10 +1,16 @@
 #ifndef PATCH_IDS_H
 #define PATCH_IDS_H
 
+#include "diff.h"
+#include "hashmap.h"
+
+struct commit;
+struct object_id;
+
 struct patch_id {
        struct hashmap_entry ent;
-       unsigned char patch_id[GIT_SHA1_RAWSZ];
-       char seen;
+       struct object_id patch_id;
+       struct commit *commit;
 };
 
 struct patch_ids {
@@ -13,7 +19,7 @@ struct patch_ids {
 };
 
 int commit_patch_id(struct commit *commit, struct diff_options *options,
-                   unsigned char *sha1);
+                   struct object_id *oid, int);
 int init_patch_ids(struct patch_ids *);
 int free_patch_ids(struct patch_ids *);
 struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);