From 6f407fb086f6894379fc106cbcc2f5e3f89b4f3a Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 14 Jan 2025 18:07:55 +0800 Subject: [PATCH] enhance: enable `--index` option in `git stash pop` command by default (#903) --- src/Commands/Stash.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/Stash.cs b/src/Commands/Stash.cs index cee79886..1cbf4b2a 100644 --- a/src/Commands/Stash.cs +++ b/src/Commands/Stash.cs @@ -75,13 +75,13 @@ namespace SourceGit.Commands public bool Apply(string name) { - Args = $"stash apply -q {name}"; + Args = $"stash apply --index -q {name}"; return Exec(); } public bool Pop(string name) { - Args = $"stash pop -q {name}"; + Args = $"stash pop --index -q {name}"; return Exec(); }