Skip to content

Commit 6f407fb

Browse files
committed
enhance: enable --index option in git stash pop command by default (#903)
1 parent cc5f3eb commit 6f407fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/Stash.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ public bool PushOnlyStaged(string message, bool keepIndex)
7575

7676
public bool Apply(string name)
7777
{
78-
Args = $"stash apply -q {name}";
78+
Args = $"stash apply --index -q {name}";
7979
return Exec();
8080
}
8181

8282
public bool Pop(string name)
8383
{
84-
Args = $"stash pop -q {name}";
84+
Args = $"stash pop --index -q {name}";
8585
return Exec();
8686
}
8787

0 commit comments

Comments
 (0)