summaryrefslogtreecommitdiff
path: root/patch-ids.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-05-30 17:30:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-02 00:36:07 (GMT)
commit34f3c0ebfbe3c8075587e5b06d0fd280ea57f053 (patch)
treeda3df7f156f846a20fbc2463f93b6f275e0aa6ea /patch-ids.h
parent74014152be5d4280b1f8541cbae09b441d2c5328 (diff)
downloadgit-34f3c0ebfbe3c8075587e5b06d0fd280ea57f053.zip
git-34f3c0ebfbe3c8075587e5b06d0fd280ea57f053.tar.gz
git-34f3c0ebfbe3c8075587e5b06d0fd280ea57f053.tar.bz2
patch-ids: convert to struct object_id
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'patch-ids.h')
-rw-r--r--patch-ids.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch-ids.h b/patch-ids.h
index b9e5751..bec0f72 100644
--- a/patch-ids.h
+++ b/patch-ids.h
@@ -3,7 +3,7 @@
struct patch_id {
struct hashmap_entry ent;
- unsigned char patch_id[GIT_MAX_RAWSZ];
+ struct object_id patch_id;
struct commit *commit;
};
@@ -13,7 +13,7 @@ struct patch_ids {
};
int commit_patch_id(struct commit *commit, struct diff_options *options,
- unsigned char *sha1, int);
+ 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 *);