ggreer/the_silver_searcher — pull request #123 by rking (2012-12-03 14:53:05+00:00)
Title: Attempt to mimic .gitignore more closely

man 5 gitignore says:

A leading slash matches the beginning of the pathname. For example,
"/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".

Certain frameworks, such as Ruby on Rails, generate patterns like this:

/*/*.log

Which were not getting ignored from `ag`. This patch fixes that for me,
but I'm not at all sure if it is otherwise correct.

Thanks!