mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-08 04:15:00 +00:00
feature: use git stash show -u --name-status <stash_name>
command to query changes in selected stash if git >= 2.32.0
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
65dbfd336d
commit
38d87fa1a1
4 changed files with 98 additions and 13 deletions
|
@ -64,7 +64,7 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
if (OnlyStaged)
|
||||
{
|
||||
if (Native.OS.GitVersion >= Models.GitVersions.STASH_ONLY_STAGED)
|
||||
if (Native.OS.GitVersion >= Models.GitVersions.STASH_PUSH_ONLY_STAGED)
|
||||
{
|
||||
succ = new Commands.Stash(_repo.FullPath).PushOnlyStaged(Message, KeepIndex);
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ namespace SourceGit.ViewModels
|
|||
return true;
|
||||
|
||||
var succ = false;
|
||||
if (Native.OS.GitVersion >= Models.GitVersions.STASH_WITH_PATHSPECFILE)
|
||||
if (Native.OS.GitVersion >= Models.GitVersions.STASH_PUSH_WITH_PATHSPECFILE)
|
||||
{
|
||||
var paths = new List<string>();
|
||||
foreach (var c in changes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue