diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/libgit2-sys/lib.rs | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.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, |