In ack 2.0, you can use either .ackrc or _ackrc for project-specific
config. (I've submitted a pull req to allow the same choice for the
user-specific config, but it hasn't been merged yet:
https://github.com/petdance/ack2/pull/109 .)
But what should ack do if a directory contains both .ackrc and _ackrc?
The current behavior is to load .ackrc and ignore _ackrc. But this
could be confusing, especially since .ackrc is a hidden file in Unix,
and _ackrc isn't.
Some possible behaviors for a directory with both .ackrc and _ackrc :
* Load both
But why would we need two files?
* Load _ackrc and ignore .ackrc
But this makes it seem like _ackrc is the preferred name,
which isn't really the case.
* Throw an error (or a warning)
I'm leaning towards this (probably a warning rather than an error)
What do other people think?
--
Chris Madsen
pe...@cjmweb.net
--------------------
http://www.cjmweb.net --------------------