We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d932ea commit 2c77422Copy full SHA for 2c77422
pkg/commands/git_commands/stash_loader.go
@@ -56,7 +56,7 @@ outer:
56
currentStashEntry = stashEntryFromLine(match[2], idx)
57
for i+1 < len(lines) && !isAStash(lines[i+1]) {
58
i++
59
- if lines[i] == filterPath {
+ if strings.HasPrefix(lines[i], filterPath) {
60
stashEntries = append(stashEntries, currentStashEntry)
61
continue outer
62
}
pkg/integration/tests/stash/filter_by_path.go
@@ -53,11 +53,8 @@ var FilterByPath = NewIntegrationTest(NewIntegrationTestArgs{
53
filterBy("subdir")
54
55
t.Views().Stash().
- /* EXPECTED:
Lines(
Contains("subdir/file2"),
)
- ACTUAL: */
- IsEmpty()
},
63
})
0 commit comments