diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-07-11 14:11:15 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-07-11 21:36:49 -0400 |
commit | 5e44529d206936336e568725aec4fb5fe64138b7 (patch) | |
tree | a4ca6d441371d7b146bae5d123100633900de3a7 /src/libgit2/mwindow.c | |
parent | 73deea7e0cef7761588df25c396c156ae901725a (diff) | |
download | libgit2-ethomson/sha256_pack.tar.gz |
pack: support SHA256 in packfilesethomson/sha256_pack
Diffstat (limited to 'src/libgit2/mwindow.c')
-rw-r--r-- | src/libgit2/mwindow.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libgit2/mwindow.c b/src/libgit2/mwindow.c index ad649490a..b8295d9d1 100644 --- a/src/libgit2/mwindow.c +++ b/src/libgit2/mwindow.c @@ -61,7 +61,10 @@ int git_mwindow_global_init(void) return git_runtime_shutdown_register(git_mwindow_global_shutdown); } -int git_mwindow_get_pack(struct git_pack_file **out, const char *path) +int git_mwindow_get_pack( + struct git_pack_file **out, + const char *path, + git_oid_t oid_type) { struct git_pack_file *pack; char *packname; @@ -86,7 +89,7 @@ int git_mwindow_get_pack(struct git_pack_file **out, const char *path) } /* If we didn't find it, we need to create it */ - if ((error = git_packfile_alloc(&pack, path)) < 0) { + if ((error = git_packfile_alloc(&pack, path, oid_type)) < 0) { git_mutex_unlock(&git__mwindow_mutex); return error; } |