File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -704,6 +704,21 @@ pub type git_treebuilder_filter_cb =
704
704
705
705
pub type git_revwalk_hide_cb = Option < extern "C" fn ( * const git_oid , * mut c_void ) -> c_int > ;
706
706
707
+ git_enum ! {
708
+ pub enum git_tree_update_t {
709
+ GIT_TREE_UPDATE_UPSERT = 0 ,
710
+ GIT_TREE_UPDATE_REMOVE = 1 ,
711
+ }
712
+ }
713
+
714
+ #[ repr( C ) ]
715
+ pub struct git_tree_update {
716
+ pub action : git_tree_update_t ,
717
+ pub id : git_oid ,
718
+ pub filemode : git_filemode_t ,
719
+ pub path : * const c_char ,
720
+ }
721
+
707
722
#[ repr( C ) ]
708
723
#[ derive( Copy , Clone ) ]
709
724
pub struct git_buf {
@@ -2531,6 +2546,13 @@ extern "C" {
2531
2546
callback : git_treewalk_cb ,
2532
2547
payload : * mut c_void ,
2533
2548
) -> c_int ;
2549
+ pub fn git_tree_create_updated (
2550
+ out : * mut git_oid ,
2551
+ repo : * mut git_repository ,
2552
+ baseline : * mut git_tree ,
2553
+ nupdates : usize ,
2554
+ updates : * const git_tree_update ,
2555
+ ) -> c_int ;
2534
2556
2535
2557
// treebuilder
2536
2558
pub fn git_treebuilder_new (
You can’t perform that action at this time.
0 commit comments