the_silver_searcher: Glob patterns don't work inside directories

The following pattern inside .gitignore doesn’t work: log/*.log; while this works fine: *.log. I created a small test repo to display the issue:

https://github.com/chetan/silver_searcher_bug

About this issue

  • Original URL
  • State: open
  • Created 12 years ago
  • Reactions: 4
  • Comments: 32 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Also seeing this on latest Ag + Sierra

I too am seeing this with ag 0.30.0 on OSX 10.10.5

@chetan, please reopen this issue, as it’s still relevant

I can confirm that the bug is present in 0.31.0 from homebrew on OS X 10.11.1.

Same problem happens with ag version 2.2.0.

Just tried with the latest silver searcher from homebrew (2.1.0). @chetan Can we reopen this?

**/dist doesnt is ignored but something like /dist works. even though their is no /dist and I want to target nested dists.

@ggreer Can this issued be reopened? If not we should open a new issue. I’m getting matches of artifact files that are in gitignore.

ag version 2.1.0

Features:
  +jit +lzma +zlib

git --version
git version 2.16.2

This is a bit annoying since I am using it in vim and it tries to search through compiled files.

The bug is also in 0.32.0 from homebrew on OSX 10.11.5.