]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'mt/grep-cached-untracked'
authorJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 01:21:41 +0000 (17:21 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 01:21:41 +0000 (17:21 -0800)
commitf712632a518ffd2611ae4a33cce43b53c73ce2c1
treea7d5a439805e9b6ea99eb6be665d6e9056cc2711
parent78a26cb7204ddb96a5f75f09e41fbefd81c85f59
parent0c5d83b2484c027971b793c442d147979c7e1a04
Merge branch 'mt/grep-cached-untracked'

"git grep --untracked" is meant to be "let's ALSO find in these
files on the filesystem" when looking for matches in the working
tree files, and does not make any sense if the primary search is
done against the index, or the tree objects.  The "--cached" and
"--untracked" options have been marked as mutually incompatible.

* mt/grep-cached-untracked:
  grep: error out if --untracked is used with --cached
builtin/grep.c