Merge branch 'tg/grep-no-index-fallback'
authorJunio C Hamano <gitster@pobox.com>
Wed, 20 Jan 2016 19:43:38 +0000 (11:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Jan 2016 19:43:39 +0000 (11:43 -0800)
commit52bae62f7888edf5e87ef85bbe04803474f67c10
treea4f85d775b4dacc8356f99de3bbfd4d33cc3269f
parent569ff48deb0d36f9e80c4d03d78e8b507820dc57
parentecd9ba61778e436dde12f08781a12ad1149d5ebf
Merge branch 'tg/grep-no-index-fallback'

"git grep" by default does not fall back to its "--no-index"
behaviour outside a directory under Git's control (otherwise the
user may by mistake end up running a huge recursive search); with a
new configuration (set in $HOME/.gitconfig--by definition this
cannot be set in the config file per project), this safety can be
disabled.

* tg/grep-no-index-fallback:
  builtin/grep: add grep.fallbackToNoIndex config
  t7810: correct --no-index test
Documentation/config.txt
Documentation/git-grep.txt
builtin/grep.c