summaryrefslogtreecommitdiff
path: root/src/libgit2/commit_graph.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-02-14 17:01:23 +0000
committerGitHub <noreply@github.com>2023-02-14 17:01:23 +0000
commit80742e159c3221fd853d9a0fe735b382a7e3419d (patch)
tree60514c97fde6a8630a174d3b61781347913b4f70 /src/libgit2/commit_graph.c
parentf7963f28cad7b2416a3cb0e55bc5adf85c82607b (diff)
parente3cd859150f720914dfbbdd2d80d12b1482a397a (diff)
downloadlibgit2-80742e159c3221fd853d9a0fe735b382a7e3419d.tar.gz
Merge pull request #6456 from libgit2/ethomson/sha256_experimental
SHA256: more SHA256 support
Diffstat (limited to 'src/libgit2/commit_graph.c')
-rw-r--r--src/libgit2/commit_graph.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libgit2/commit_graph.c b/src/libgit2/commit_graph.c
index 9554fe855..bf557f7ad 100644
--- a/src/libgit2/commit_graph.c
+++ b/src/libgit2/commit_graph.c
@@ -538,7 +538,7 @@ int git_commit_graph_entry_find(
hi = ntohl(file->oid_fanout[(int)short_oid->id[0]]);
lo = ((short_oid->id[0] == 0x0) ? 0 : ntohl(file->oid_fanout[(int)short_oid->id[0] - 1]));
- pos = git_pack__lookup_sha1(file->oid_lookup, GIT_OID_SHA1_SIZE, lo, hi, short_oid->id);
+ pos = git_pack__lookup_id(file->oid_lookup, GIT_OID_SHA1_SIZE, lo, hi, short_oid->id, GIT_OID_SHA1);
if (pos >= 0) {
/* An object matching exactly the oid was found */
@@ -726,7 +726,8 @@ int git_commit_graph_writer_add_index_file(
if (error < 0)
goto cleanup;
- error = git_mwindow_get_pack(&p, idx_path);
+ /* TODO: SHA256 */
+ error = git_mwindow_get_pack(&p, idx_path, 0);
if (error < 0)
goto cleanup;