diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:19 +0000 |
commit | a0b8f38ab54ac451646aa00cd5e91b6c76f22a84 (patch) | |
tree | fc451898ccaf445814e26b46664d78702178101d /vendor/libgit2-sys/lib.rs | |
parent | Adding debian version 1.71.1+dfsg1-2. (diff) | |
download | rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.tar.xz rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/libgit2-sys/lib.rs')
-rw-r--r-- | vendor/libgit2-sys/lib.rs | 21 |
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, |