From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/libgit2-sys/lib.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'vendor/libgit2-sys/lib.rs') 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, } } @@ -1754,6 +1755,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, @@ -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, -- cgit v1.2.3