HomePhabricator

grep: fix --follow with no --diff nor --rev to not fall back to plain grep

Authored by yuja.

Description

grep: fix --follow with no --diff nor --rev to not fall back to plain grep

Before, "grep --follow" would only print matches in the working directory.
Since --follow is the option to specify the search space, it should disable
the plain (i.e. wdir) grep.

Details

Committed
yujaSep 10 2020, 12:30 AM
Parents
rHG20dd2a259b0f: test-grep: add tests for --follow with/without --diff and/or paths
Branches
Unknown
Tags
Unknown