1
- #![ doc( html_root_url = "https://docs.rs/libgit2-sys/0.17 " ) ]
1
+ #![ doc( html_root_url = "https://docs.rs/libgit2-sys/0.18 " ) ]
2
2
#![ allow( non_camel_case_types, unused_extern_crates) ]
3
3
4
4
// This is required to link libz when libssh2-sys is not included.
@@ -395,6 +395,15 @@ pub struct git_remote_callbacks {
395
395
pub remote_ready : git_remote_ready_cb ,
396
396
pub payload : * mut c_void ,
397
397
pub resolve_url : git_url_resolve_cb ,
398
+ pub update_refs : Option <
399
+ extern "C" fn (
400
+ * const c_char ,
401
+ * const git_oid ,
402
+ * const git_oid ,
403
+ * mut git_refspec ,
404
+ * mut c_void ,
405
+ ) -> c_int ,
406
+ > ,
398
407
}
399
408
400
409
#[ repr( C ) ]
@@ -668,8 +677,7 @@ pub struct git_status_entry {
668
677
669
678
git_enum ! {
670
679
pub enum git_checkout_strategy_t {
671
- GIT_CHECKOUT_NONE = 0 ,
672
- GIT_CHECKOUT_SAFE = 1 << 0 ,
680
+ GIT_CHECKOUT_SAFE = 0 ,
673
681
GIT_CHECKOUT_FORCE = 1 << 1 ,
674
682
GIT_CHECKOUT_RECREATE_MISSING = 1 << 2 ,
675
683
GIT_CHECKOUT_ALLOW_CONFLICTS = 1 << 4 ,
@@ -686,6 +694,7 @@ git_enum! {
686
694
GIT_CHECKOUT_DONT_OVERWRITE_IGNORED = 1 << 19 ,
687
695
GIT_CHECKOUT_CONFLICT_STYLE_MERGE = 1 << 20 ,
688
696
GIT_CHECKOUT_CONFLICT_STYLE_DIFF3 = 1 << 21 ,
697
+ GIT_CHECKOUT_NONE = 1 << 30 ,
689
698
690
699
GIT_CHECKOUT_UPDATE_SUBMODULES = 1 << 16 ,
691
700
GIT_CHECKOUT_UPDATE_SUBMODULES_IF_CHANGED = 1 << 17 ,
@@ -808,10 +817,13 @@ pub struct git_blame_hunk {
808
817
pub final_commit_id : git_oid ,
809
818
pub final_start_line_number : usize ,
810
819
pub final_signature : * mut git_signature ,
820
+ pub final_committer : * mut git_signature ,
811
821
pub orig_commit_id : git_oid ,
812
822
pub orig_path : * const c_char ,
813
823
pub orig_start_line_number : usize ,
814
824
pub orig_signature : * mut git_signature ,
825
+ pub orig_committer : * mut git_signature ,
826
+ pub summary : * const c_char ,
815
827
pub boundary : c_char ,
816
828
}
817
829
@@ -870,7 +882,6 @@ pub struct git_config_entry {
870
882
pub origin_path : * const c_char ,
871
883
pub include_depth : c_uint ,
872
884
pub level : git_config_level_t ,
873
- pub free : Option < extern "C" fn ( * mut git_config_entry ) > ,
874
885
}
875
886
876
887
git_enum ! {
@@ -2906,7 +2917,7 @@ extern "C" {
2906
2917
message : * const c_char ,
2907
2918
tree : * const git_tree ,
2908
2919
parent_count : size_t ,
2909
- parents : * const * mut git_commit ,
2920
+ parents : * mut * const git_commit ,
2910
2921
) -> c_int ;
2911
2922
pub fn git_commit_create_buffer (
2912
2923
out : * mut git_buf ,
@@ -2917,7 +2928,7 @@ extern "C" {
2917
2928
message : * const c_char ,
2918
2929
tree : * const git_tree ,
2919
2930
parent_count : size_t ,
2920
- parents : * const * mut git_commit ,
2931
+ parents : * mut * const git_commit ,
2921
2932
) -> c_int ;
2922
2933
pub fn git_commit_header_field (
2923
2934
out : * mut git_buf ,
0 commit comments