From 5e56d17cb3c7dd37eed59ba710b1fc8ac0a72902 Mon Sep 17 00:00:00 2001 From: Matt Stone Date: Wed, 14 Jan 2026 19:52:51 +1000 Subject: [PATCH] Remove unnecessary file exclusion --- pkg/file/stashignore.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/file/stashignore.go b/pkg/file/stashignore.go index c00b7a6de..ccf1b4505 100644 --- a/pkg/file/stashignore.go +++ b/pkg/file/stashignore.go @@ -40,11 +40,6 @@ func NewStashIgnoreFilter() *StashIgnoreFilter { // The libraryRoot parameter bounds the search for .stashignore files - // only directories within the library root are checked. func (f *StashIgnoreFilter) Accept(ctx context.Context, path string, info fs.FileInfo, libraryRoot string) bool { - // Always accept .stashignore files themselves so they can be read. - if filepath.Base(path) == stashIgnoreFilename { - return true - } - // If no library root provided, accept the file (safety fallback). if libraryRoot == "" { return true