current commit
160923.2.3 · Change a few test cases to use .ignore instead of .gitignore, just to make sure the functionality works.
Setup:

  $ . $TESTDIR/setup.sh
  $ mkdir -p subdir
  $ printf 'match1\n' > subdir/file1.txt
  $ printf 'file1.txt\n' > .ignore

Ignore directory specified by name:

  $ ag match
  [1]

# Ignore directory specified by name in parent directory when using path (#144):

#   $ ag match subdir
#   [1]

# Ignore directory specified by name in parent directory when using current directory (#144):

#   $ cd subdir
#   $ ag match
#   [1]