summaryrefslogtreecommitdiffstats
path: root/vendor/libgit2-sys/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libgit2-sys/lib.rs')
-rw-r--r--vendor/libgit2-sys/lib.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/libgit2-sys/lib.rs b/vendor/libgit2-sys/lib.rs
index ad04cac7e..3dd11978b 100644
--- a/vendor/libgit2-sys/lib.rs
+++ b/vendor/libgit2-sys/lib.rs
@@ -1731,6 +1731,7 @@ git_enum! {
GIT_STASH_KEEP_INDEX = 1 << 0,
GIT_STASH_INCLUDE_UNTRACKED = 1 << 1,
GIT_STASH_INCLUDE_IGNORED = 1 << 2,
+ GIT_STASH_KEEP_ALL = 1 << 3,
}
}
@@ -1755,6 +1756,17 @@ git_enum! {
}
#[repr(C)]
+pub struct git_stash_save_options {
+ pub version: c_uint,
+ pub flags: u32,
+ pub stasher: *const git_signature,
+ pub message: *const c_char,
+ pub paths: git_strarray,
+}
+
+pub const GIT_STASH_SAVE_OPTIONS_VERSION: c_uint = 1;
+
+#[repr(C)]
pub struct git_stash_apply_options {
pub version: c_uint,
pub flags: u32,
@@ -2534,6 +2546,15 @@ extern "C" {
flags: c_uint,
) -> c_int;
+ pub fn git_stash_save_options_init(opts: *mut git_stash_save_options, version: c_uint)
+ -> c_int;
+
+ pub fn git_stash_save_with_opts(
+ out: *mut git_oid,
+ repo: *mut git_repository,
+ options: *const git_stash_save_options,
+ ) -> c_int;
+
pub fn git_stash_apply_init_options(
opts: *mut git_stash_apply_options,
version: c_uint,