@@ -383,6 +383,7 @@ pub struct git_fetch_options {
383
383
pub update_fetchhead : c_int ,
384
384
pub download_tags : git_remote_autotag_option_t ,
385
385
pub proxy_opts : git_proxy_options ,
386
+ pub follow_redirects : git_remote_redirect_t ,
386
387
pub custom_headers : git_strarray ,
387
388
}
388
389
@@ -609,6 +610,7 @@ pub struct git_status_options {
609
610
pub flags : c_uint ,
610
611
pub pathspec : git_strarray ,
611
612
pub baseline : * mut git_tree ,
613
+ pub rename_threshold : u16 ,
612
614
}
613
615
614
616
#[ repr( C ) ]
@@ -728,7 +730,7 @@ pub struct git_tree_update {
728
730
#[ derive( Copy , Clone ) ]
729
731
pub struct git_buf {
730
732
pub ptr : * mut c_char ,
731
- pub asize : size_t ,
733
+ pub reserved : size_t ,
732
734
pub size : size_t ,
733
735
}
734
736
@@ -951,6 +953,7 @@ pub struct git_push_options {
951
953
pub pb_parallelism : c_uint ,
952
954
pub callbacks : git_remote_callbacks ,
953
955
pub proxy_opts : git_proxy_options ,
956
+ pub follow_redirects : git_remote_redirect_t ,
954
957
pub custom_headers : git_strarray ,
955
958
}
956
959
@@ -1356,55 +1359,66 @@ pub type git_transport_cb = Option<
1356
1359
#[ repr( C ) ]
1357
1360
pub struct git_transport {
1358
1361
pub version : c_uint ,
1359
- pub set_callbacks : Option <
1362
+ pub connect : Option <
1360
1363
extern "C" fn (
1361
- * mut git_transport ,
1362
- git_transport_message_cb ,
1363
- git_transport_message_cb ,
1364
- git_transport_certificate_check_cb ,
1365
- * mut c_void ,
1364
+ transport : * mut git_transport ,
1365
+ url : * const c_char ,
1366
+ direction : c_int ,
1367
+ connect_opts : * const git_remote_connect_options ,
1366
1368
) -> c_int ,
1367
1369
> ,
1368
- pub set_custom_headers : Option < extern "C" fn ( * mut git_transport , * const git_strarray ) -> c_int > ,
1369
- pub connect : Option <
1370
+ pub set_connect_opts : Option <
1370
1371
extern "C" fn (
1371
- * mut git_transport ,
1372
- * const c_char ,
1373
- git_cred_acquire_cb ,
1374
- * mut c_void ,
1375
- * const git_proxy_options ,
1376
- c_int ,
1377
- c_int ,
1372
+ transport : * mut git_transport ,
1373
+ connect_opts : * const git_remote_connect_options ,
1378
1374
) -> c_int ,
1379
1375
> ,
1376
+ pub capabilities :
1377
+ Option < extern "C" fn ( capabilities : * mut c_uint , transport : * mut git_transport ) -> c_int > ,
1380
1378
pub ls : Option <
1381
- extern "C" fn ( * mut * mut * const git_remote_head , * mut size_t , * mut git_transport ) -> c_int ,
1382
- > ,
1383
- pub push : Option <
1384
- extern "C" fn ( * mut git_transport , * mut git_push , * const git_remote_callbacks ) -> c_int ,
1379
+ extern "C" fn (
1380
+ out : * mut * mut * const git_remote_head ,
1381
+ size : * mut size_t ,
1382
+ transport : * mut git_transport ,
1383
+ ) -> c_int ,
1385
1384
> ,
1385
+ pub push : Option < extern "C" fn ( transport : * mut git_transport , push : * mut git_push ) -> c_int > ,
1386
1386
pub negotiate_fetch : Option <
1387
1387
extern "C" fn (
1388
- * mut git_transport ,
1389
- * mut git_repository ,
1390
- * const * const git_remote_head ,
1391
- size_t ,
1388
+ transport : * mut git_transport ,
1389
+ repo : * mut git_repository ,
1390
+ refs : * const * const git_remote_head ,
1391
+ count : size_t ,
1392
1392
) -> c_int ,
1393
1393
> ,
1394
1394
pub download_pack : Option <
1395
1395
extern "C" fn (
1396
- * mut git_transport ,
1397
- * mut git_repository ,
1398
- * mut git_indexer_progress ,
1399
- git_indexer_progress_cb ,
1400
- * mut c_void ,
1396
+ transport : * mut git_transport ,
1397
+ repo : * mut git_repository ,
1398
+ stats : * mut git_indexer_progress ,
1401
1399
) -> c_int ,
1402
1400
> ,
1403
- pub is_connected : Option < extern "C" fn ( * mut git_transport ) -> c_int > ,
1404
- pub read_flags : Option < extern "C" fn ( * mut git_transport , * mut c_int ) -> c_int > ,
1405
- pub cancel : Option < extern "C" fn ( * mut git_transport ) > ,
1406
- pub close : Option < extern "C" fn ( * mut git_transport ) -> c_int > ,
1407
- pub free : Option < extern "C" fn ( * mut git_transport ) > ,
1401
+ pub is_connected : Option < extern "C" fn ( transport : * mut git_transport ) -> c_int > ,
1402
+ pub cancel : Option < extern "C" fn ( transport : * mut git_transport ) > ,
1403
+ pub close : Option < extern "C" fn ( transport : * mut git_transport ) -> c_int > ,
1404
+ pub free : Option < extern "C" fn ( transport : * mut git_transport ) > ,
1405
+ }
1406
+
1407
+ #[ repr( C ) ]
1408
+ pub struct git_remote_connect_options {
1409
+ pub version : c_uint ,
1410
+ pub callbacks : git_remote_callbacks ,
1411
+ pub proxy_opts : git_proxy_options ,
1412
+ pub follow_redirects : git_remote_redirect_t ,
1413
+ pub custom_headers : git_strarray ,
1414
+ }
1415
+
1416
+ git_enum ! {
1417
+ pub enum git_remote_redirect_t {
1418
+ GIT_REMOTE_REDIRECT_NONE = 1 << 0 ,
1419
+ GIT_REMOTE_REDIRECT_INITIAL = 1 << 1 ,
1420
+ GIT_REMOTE_REDIRECT_ALL = 1 << 2 ,
1421
+ }
1408
1422
}
1409
1423
1410
1424
#[ repr( C ) ]
@@ -1891,6 +1905,7 @@ pub struct git_worktree_add_options {
1891
1905
pub version : c_uint ,
1892
1906
pub lock : c_int ,
1893
1907
pub reference : * mut git_reference ,
1908
+ pub checkout_options : git_checkout_options ,
1894
1909
}
1895
1910
1896
1911
pub const GIT_WORKTREE_ADD_OPTIONS_VERSION : c_uint = 1 ;
@@ -3727,7 +3742,9 @@ extern "C" {
3727
3742
progress_cb : git_indexer_progress_cb ,
3728
3743
progress_cb_payload : * mut c_void ,
3729
3744
) -> c_int ;
3745
+ #[ deprecated = "use `git_packbuilder_name` to retrieve the filename" ]
3730
3746
pub fn git_packbuilder_hash ( pb : * mut git_packbuilder ) -> * const git_oid ;
3747
+ pub fn git_packbuilder_name ( pb : * mut git_packbuilder ) -> * const c_char ;
3731
3748
pub fn git_packbuilder_foreach (
3732
3749
pb : * mut git_packbuilder ,
3733
3750
cb : git_packbuilder_foreach_cb ,
0 commit comments