@@ -198,6 +198,10 @@ git_enum! {
198
198
GIT_EINDEXDIRTY = -34 ,
199
199
GIT_EAPPLYFAIL = -35 ,
200
200
GIT_EOWNER = -36 ,
201
+ GIT_TIMEOUT = -37 ,
202
+ GIT_EUNCHANGED = -38 ,
203
+ GIT_ENOTSUPPORTED = -39 ,
204
+ GIT_EREADONLY = -40 ,
201
205
}
202
206
}
203
207
@@ -366,6 +370,13 @@ pub struct git_indexer_options {
366
370
367
371
pub type git_remote_ready_cb = Option < extern "C" fn ( * mut git_remote , c_int , * mut c_void ) -> c_int > ;
368
372
373
+ git_enum ! {
374
+ pub enum git_remote_update_flags {
375
+ GIT_REMOTE_UPDATE_FETCHHEAD = 1 << 0 ,
376
+ GIT_REMOTE_UPDATE_REPORT_UNCHANGED = 1 << 1 ,
377
+ }
378
+ }
379
+
369
380
#[ repr( C ) ]
370
381
pub struct git_remote_callbacks {
371
382
pub version : c_uint ,
@@ -391,7 +402,7 @@ pub struct git_fetch_options {
391
402
pub version : c_int ,
392
403
pub callbacks : git_remote_callbacks ,
393
404
pub prune : git_fetch_prune_t ,
394
- pub update_fetchhead : c_int ,
405
+ pub update_fetchhead : c_uint ,
395
406
pub download_tags : git_remote_autotag_option_t ,
396
407
pub proxy_opts : git_proxy_options ,
397
408
pub depth : c_int ,
@@ -855,10 +866,11 @@ pub struct git_index_time {
855
866
pub struct git_config_entry {
856
867
pub name : * const c_char ,
857
868
pub value : * const c_char ,
869
+ pub backend_type : * const c_char ,
870
+ pub origin_path : * const c_char ,
858
871
pub include_depth : c_uint ,
859
872
pub level : git_config_level_t ,
860
873
pub free : Option < extern "C" fn ( * mut git_config_entry ) > ,
861
- pub payload : * mut c_void ,
862
874
}
863
875
864
876
git_enum ! {
@@ -868,7 +880,8 @@ git_enum! {
868
880
GIT_CONFIG_LEVEL_XDG = 3 ,
869
881
GIT_CONFIG_LEVEL_GLOBAL = 4 ,
870
882
GIT_CONFIG_LEVEL_LOCAL = 5 ,
871
- GIT_CONFIG_LEVEL_APP = 6 ,
883
+ GIT_CONFIG_LEVEL_WORKTREE = 6 ,
884
+ GIT_CONFIG_LEVEL_APP = 7 ,
872
885
GIT_CONFIG_HIGHEST_LEVEL = -1 ,
873
886
}
874
887
}
@@ -981,6 +994,7 @@ pub struct git_push_options {
981
994
pub proxy_opts : git_proxy_options ,
982
995
pub follow_redirects : git_remote_redirect_t ,
983
996
pub custom_headers : git_strarray ,
997
+ pub remote_push_options : git_strarray ,
984
998
}
985
999
986
1000
pub type git_tag_foreach_cb =
@@ -1947,6 +1961,14 @@ git_enum! {
1947
1961
GIT_OPT_SET_EXTENSIONS ,
1948
1962
GIT_OPT_GET_OWNER_VALIDATION ,
1949
1963
GIT_OPT_SET_OWNER_VALIDATION ,
1964
+ GIT_OPT_GET_HOMEDIR ,
1965
+ GIT_OPT_SET_HOMEDIR ,
1966
+ GIT_OPT_SET_SERVER_CONNECT_TIMEOUT ,
1967
+ GIT_OPT_GET_SERVER_CONNECT_TIMEOUT ,
1968
+ GIT_OPT_SET_SERVER_TIMEOUT ,
1969
+ GIT_OPT_GET_SERVER_TIMEOUT ,
1970
+ GIT_OPT_SET_USER_AGENT_PRODUCT ,
1971
+ GIT_OPT_GET_USER_AGENT_PRODUCT ,
1950
1972
}
1951
1973
}
1952
1974
@@ -1963,6 +1985,7 @@ git_enum! {
1963
1985
pub struct git_worktree_add_options {
1964
1986
pub version : c_uint ,
1965
1987
pub lock : c_int ,
1988
+ pub checkout_existing : c_int ,
1966
1989
pub reference : * mut git_reference ,
1967
1990
pub checkout_options : git_checkout_options ,
1968
1991
}
@@ -2326,7 +2349,7 @@ extern "C" {
2326
2349
pub fn git_remote_update_tips (
2327
2350
remote : * mut git_remote ,
2328
2351
callbacks : * const git_remote_callbacks ,
2329
- update_fetchead : c_int ,
2352
+ update_flags : c_uint ,
2330
2353
download_tags : git_remote_autotag_option_t ,
2331
2354
reflog_message : * const c_char ,
2332
2355
) -> c_int ;
@@ -2882,7 +2905,7 @@ extern "C" {
2882
2905
message : * const c_char ,
2883
2906
tree : * const git_tree ,
2884
2907
parent_count : size_t ,
2885
- parents : * mut * const git_commit ,
2908
+ parents : * const * mut git_commit ,
2886
2909
) -> c_int ;
2887
2910
pub fn git_commit_create_buffer (
2888
2911
out : * mut git_buf ,
@@ -2893,7 +2916,7 @@ extern "C" {
2893
2916
message : * const c_char ,
2894
2917
tree : * const git_tree ,
2895
2918
parent_count : size_t ,
2896
- parents : * mut * const git_commit ,
2919
+ parents : * const * mut git_commit ,
2897
2920
) -> c_int ;
2898
2921
pub fn git_commit_header_field (
2899
2922
out : * mut git_buf ,
0 commit comments