title: Silver Searcher - How to ignore a file
body: <p>According to the docs, it should be</p>
  
  <pre><code>--ignore PATTERN
  </code></pre>
  
  <p>I have a file containing tags, named "tags". I have tried the following, each of them still searches through the tag file..</p>
  
  <pre><code>ag -Qt --ignore ".*tags" "asdf"
  
  ag -Qt --ignore .*tags "asdf"
  
  ag -Qt --ignore "tags" "asdf"
  
  ag -Qt --ignore tags "asdf"
  
  ag -Qt --ignore *tags
  </code></pre>
  
  <p>and none of them works.</p>
  
  <p>If I use what's suggested <a href="http://minimul.com/ignoring-files-with-ag-silver-searcher.html">here</a>, then ag doesn't accept it at all</p>
  
  <p>I tried to work around it by renaming it to temp.tags and using <code>*.tags</code> pattern to try and ignore it, but it still doesn't work.</p>
  
  <p>Any ideas?</p>