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