@@ -24,7 +24,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
2424 require.NoError(t, os.WriteFile(file, []byte("test content"), 0o644))
2525 }
2626
27− matches, truncated, err := GlobWithDoubleStar("**/main.go", testDir, 0)
27+ matches, truncated, err := GlobGitignoreAware("**/main.go", testDir, 0)
2828 require.NoError(t, err)
2929 require.False(t, truncated)
3030
@@ -47,7 +47,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
4747 require.NoError(t, os.WriteFile(filepath.Join(srcDir, "main.go"), []byte("package main"), 0o644))
4848 require.NoError(t, os.WriteFile(pkgFile, []byte("test"), 0o644))
4949
50− matches, truncated, err := GlobWithDoubleStar("pkg", testDir, 0)
50+ matches, truncated, err := GlobGitignoreAware("pkg", testDir, 0)
5151 require.NoError(t, err)
5252 require.False(t, truncated)
5353
@@ -66,7 +66,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
6666 require.NoError(t, os.MkdirAll(dir, 0o755))
6767 }
6868
69− matches, truncated, err := GlobWithDoubleStar("**/pkg", testDir, 0)
69+ matches, truncated, err := GlobGitignoreAware("**/pkg", testDir, 0)
7070 require.NoError(t, err)
7171 require.False(t, truncated)
7272
@@ -95,7 +95,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
9595 require.NoError(t, os.WriteFile(file, []byte("package main"), 0o644))
9696 }
9797
98− matches, truncated, err := GlobWithDoubleStar("pkg/**", testDir, 0)
98+ matches, truncated, err := GlobGitignoreAware("pkg/**", testDir, 0)
9999 require.NoError(t, err)
100100 require.False(t, truncated)
101101
@@ -124,7 +124,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
124124 require.NoError(t, os.WriteFile(file, []byte("test"), 0o644))
125125 }
126126
127− matches, truncated, err := GlobWithDoubleStar("**/*.txt", testDir, 5)
127+ matches, truncated, err := GlobGitignoreAware("**/*.txt", testDir, 5)
128128 require.NoError(t, err)
129129 require.True(t, truncated, "Expected truncation with limit")
130130 require.Len(t, matches, 5, "Expected exactly 5 matches with limit")
@@ -143,7 +143,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
143143 require.NoError(t, os.WriteFile(file, []byte("test"), 0o644))
144144 }
145145
146− matches, truncated, err := GlobWithDoubleStar("a/b/c/file1.txt", testDir, 0)
146+ matches, truncated, err := GlobGitignoreAware("a/b/c/file1.txt", testDir, 0)
147147 require.NoError(t, err)
148148 require.False(t, truncated)
149149
@@ -171,7 +171,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
171171 require.NoError(t, os.Chtimes(file2, m2, m2))
172172 require.NoError(t, os.Chtimes(file3, m3, m3))
173173
174− matches, truncated, err := GlobWithDoubleStar("*.txt", testDir, 0)
174+ matches, truncated, err := GlobGitignoreAware("*.txt", testDir, 0)
175175 require.NoError(t, err)
176176 require.False(t, truncated)
177177
@@ -181,7 +181,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
181181 t.Run("handles empty directory", func(t *testing.T) {
182182 testDir := t.TempDir()
183183
184− matches, truncated, err := GlobWithDoubleStar("**", testDir, 0)
184+ matches, truncated, err := GlobGitignoreAware("**", testDir, 0)
185185 require.NoError(t, err)
186186 require.False(t, truncated)
187187 // Even empty directories should return the directory itself
@@ -191,7 +191,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
191191 t.Run("handles non-existent search path", func(t *testing.T) {
192192 nonExistentDir := filepath.Join(t.TempDir(), "does", "not", "exist")
193193
194− matches, truncated, err := GlobWithDoubleStar("**", nonExistentDir, 0)
194+ matches, truncated, err := GlobGitignoreAware("**", nonExistentDir, 0)
195195 require.Error(t, err, "Should return error for non-existent search path")
196196 require.False(t, truncated)
197197 require.Empty(t, matches)
@@ -219,17 +219,17 @@ func TestGlobWithDoubleStar(t *testing.T) {
219219 ignoredFileInDir := filepath.Join(testDir, "backup", "old.txt")
220220 require.NoError(t, os.WriteFile(ignoredFileInDir, []byte("old content"), 0o644))
221221
222− matches, truncated, err := GlobWithDoubleStar("*.tmp", testDir, 0)
222+ matches, truncated, err := GlobGitignoreAware("*.tmp", testDir, 0)
223223 require.NoError(t, err)
224224 require.False(t, truncated)
225225 require.Empty(t, matches, "Expected no matches for '*.tmp' pattern (should be ignored)")
226226
227− matches, truncated, err = GlobWithDoubleStar("backup", testDir, 0)
227+ matches, truncated, err = GlobGitignoreAware("backup", testDir, 0)
228228 require.NoError(t, err)
229229 require.False(t, truncated)
230230 require.Empty(t, matches, "Expected no matches for 'backup' pattern (should be ignored)")
231231
232− matches, truncated, err = GlobWithDoubleStar("*.txt", testDir, 0)
232+ matches, truncated, err = GlobGitignoreAware("*.txt", testDir, 0)
233233 require.NoError(t, err)
234234 require.False(t, truncated)
235235 require.Equal(t, []string{goodFile}, matches)
@@ -257,7 +257,7 @@ func TestGlobWithDoubleStar(t *testing.T) {
257257 require.NoError(t, os.Chtimes(middleDir, tMiddle, tMiddle))
258258 require.NoError(t, os.Chtimes(oldestFile, tNewest, tNewest))
259259
260− matches, truncated, err := GlobWithDoubleStar("*.rs", testDir, 0)
260+ matches, truncated, err := GlobGitignoreAware("*.rs", testDir, 0)
261261 require.NoError(t, err)
262262 require.False(t, truncated)
263263 require.Len(t, matches, 3)