grep: remove redundant regflags assignments
[gitweb.git] / patch-ids.h
index 9569ee0d26c5cfb3ad176d54a97440739fd2ad55..b9e5751f8e2f6ef17bfa444fe6d8f3f2c6b7bb85 100644 (file)
@@ -3,8 +3,8 @@
 
 struct patch_id {
        struct hashmap_entry ent;
-       unsigned char patch_id[GIT_SHA1_RAWSZ];
-       char seen;
+       unsigned char patch_id[GIT_MAX_RAWSZ];
+       struct commit *commit;
 };
 
 struct patch_ids {
@@ -13,7 +13,7 @@ struct patch_ids {
 };
 
 int commit_patch_id(struct commit *commit, struct diff_options *options,
-                   unsigned char *sha1);
+                   unsigned char *sha1, 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 *);