Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update libgit2 #642

Merged
merged 1 commit into from
Dec 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ fn main() {
// when when COMPILE_PCRE8 is not defined, which is the default.
add_c_files(&mut cfg, "libgit2/deps/pcre");

cfg.file("libgit2/src/allocators/failalloc.c");
cfg.file("libgit2/src/allocators/stdalloc.c");

if windows {
Expand Down
11 changes: 11 additions & 0 deletions libgit2-sys/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ pub struct git_cert_hostkey {
pub hash_md5: [u8; 16],
pub hash_sha1: [u8; 20],
pub hash_sha256: [u8; 32],
pub raw_type: git_cert_ssh_raw_type_t,
pub hostkey: *const c_char,
pub hostkey_len: size_t,
}

#[repr(C)]
Expand All @@ -473,6 +476,14 @@ git_enum! {
}
}

git_enum! {
pub enum git_cert_ssh_raw_type_t {
GIT_CERT_SSH_RAW_TYPE_UNKNOWN = 0,
GIT_CERT_SSH_RAW_TYPE_RSA = 1,
GIT_CERT_SSH_RAW_TYPE_DSS = 2,
}
}

git_enum! {
pub enum git_diff_flag_t {
GIT_DIFF_FLAG_BINARY = 1 << 0,
Expand Down
2 changes: 1 addition & 1 deletion libgit2-sys/libgit2
Submodule libgit2 updated 228 files