Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

.gitignore whitelists are not respected. #422

Closed
akgerber opened this Issue Jun 5, 2014 · 2 comments

Comments

Projects
None yet
3 participants

akgerber commented Jun 5, 2014

This may be best explained with a simple example:
Given this .gitignore:

#start by ignoring everything
*
#and whitelist the stuff we want to keep
!problems/
!problems/*

And this directory structure:

.
└── problems
    └── fake_file.rb

where fake_file.rb contains

HELLO WORLD

ag WORLD returns no results.
ag -a WORLD returns results:

$ag -a WORLD
problems/fake_file.rb
1:HELLO WORLD

eevee commented Sep 2, 2014

Duplicate of #168?

@ggreer ggreer added the ignore label Sep 26, 2014

Owner

ggreer commented Oct 12, 2014

Yes, this is a dupe of #168. Please watch that issue.

@ggreer ggreer closed this Oct 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment