summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-09-29 21:31:17 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-10-01 08:12:07 -0400
commit2a713da1ec2e9f74c9edc75b06540ab095c68c34 (patch)
tree488891e9b76cf54582738c48674e7dfde81cc638 /src/diff.c
parent3fff59705fec852b97639364ca7b3e84ff7040b7 (diff)
downloadlibgit2-2a713da1ec2e9f74c9edc75b06540ab095c68c34.tar.gz
hash: accept the algorithm in inputs
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 30b9f647a..4434d37d4 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -352,7 +352,7 @@ int git_diff_patchid(git_oid *out, git_diff *diff, git_diff_patchid_options *opt
memset(&args, 0, sizeof(args));
args.first_file = 1;
- if ((error = git_hash_ctx_init(&args.ctx)) < 0)
+ if ((error = git_hash_ctx_init(&args.ctx, GIT_HASH_ALGORITHM_SHA1)) < 0)
goto out;
if ((error = git_diff_print(diff,