grep: remove local option --only-files permanently
authorJohn Marino <draco@marino.st>
Tue, 8 May 2012 17:02:03 +0000 (19:02 +0200)
committerJohn Marino <draco@marino.st>
Tue, 8 May 2012 21:53:04 +0000 (23:53 +0200)
commit0ccaf658083d02919184683e49a33e9088ccb047
treed5e1bedd849cbdff58bfea6fc5a514276ad658f9
parent3bdcc4d938a4c50152559bb2c55b7395862418d0
grep: remove local option --only-files permanently

The grep option --only-files exists only on DragonFly.  It was added in
late 2005 by Simon Schubert as a quick and dirty way to search object
directories using grep rather than a complex find command.  The issue
was that some directory symlinks were created that produced recursive
loops.  There wasn't a lot of support for the suggestion, but when the
code was altered to allow non-directory symlinks to be followed by the
--only-files option, the main objection was addressed.

The problem is that this modification is making it difficult to maintain
grep.  The code that it touches changes frequently, and its unmergable
with grep 2.12.  The burden of maintaining this option is too much
considering it may only have a single user.

Discussed with: Dillon

For the purposes of merging grep 2.12, the hammer bug fix is also being
removed since it doesn't merge cleanly, but it will be restored after
the merge.
contrib/grep/doc/grep.texi
contrib/grep/src/main.c