Skip to content

Commit c273ed9

Browse files
authored
Bump libgit2 submodule to 1.2.0 (#744)
* Bump libgit2 submodule to 1.2.0 Follow the recent release of 1.2.0 * Update bindings
1 parent ca6672b commit c273ed9

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

libgit2-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libgit2-sys"
3-
version = "0.12.22+1.1.0"
3+
version = "0.12.22+1.2.0"
44
authors = ["Josh Triplett <[email protected]>", "Alex Crichton <[email protected]>"]
55
links = "git2"
66
build = "build.rs"

libgit2-sys/lib.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ pub type git_indexer_progress_cb =
353353
)]
354354
pub type git_transfer_progress = git_indexer_progress;
355355

356+
pub type git_remote_ready_cb = Option<extern "C" fn(*mut git_remote, c_int, *mut c_void) -> c_int>;
357+
356358
#[repr(C)]
357359
pub struct git_remote_callbacks {
358360
pub version: c_uint,
@@ -368,6 +370,7 @@ pub struct git_remote_callbacks {
368370
pub push_update_reference: git_push_update_reference_cb,
369371
pub push_negotiation: git_push_negotiation,
370372
pub transport: git_transport_cb,
373+
pub remote_ready: git_remote_ready_cb,
371374
pub payload: *mut c_void,
372375
pub resolve_url: git_url_resolve_cb,
373376
}
@@ -1486,6 +1489,8 @@ pub struct git_odb_backend {
14861489
) -> c_int,
14871490
>,
14881491

1492+
pub writemidx: Option<extern "C" fn(*mut git_odb_backend) -> c_int>,
1493+
14891494
pub freshen: Option<extern "C" fn(*mut git_odb_backend, *const git_oid) -> c_int>,
14901495

14911496
pub free: Option<extern "C" fn(*mut git_odb_backend)>,
@@ -1745,6 +1750,20 @@ pub type git_commit_signing_cb = Option<
17451750
) -> c_int,
17461751
>;
17471752

1753+
pub type git_commit_create_cb = Option<
1754+
extern "C" fn(
1755+
*mut git_oid,
1756+
*const git_signature,
1757+
*const git_signature,
1758+
*const c_char,
1759+
*const c_char,
1760+
*const git_tree,
1761+
usize,
1762+
*const git_commit,
1763+
*mut c_void,
1764+
) -> c_int,
1765+
>;
1766+
17481767
pub const GIT_REBASE_NO_OPERATION: usize = usize::max_value();
17491768

17501769
#[repr(C)]
@@ -1755,6 +1774,7 @@ pub struct git_rebase_options {
17551774
pub rewrite_notes_ref: *const c_char,
17561775
pub merge_options: git_merge_options,
17571776
pub checkout_options: git_checkout_options,
1777+
pub commit_create_cb: git_commit_create_cb,
17581778
pub signing_cb: git_commit_signing_cb,
17591779
pub payload: *mut c_void,
17601780
}

libgit2-sys/libgit2

Submodule libgit2 updated 233 files

0 commit comments

Comments
 (0)