Merge branch 'jk/grep-no-index-fix' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 24 Mar 2017 19:57:53 +0000 (12:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Mar 2017 19:57:53 +0000 (12:57 -0700)
commitea7aa5a464ea7e0d5ee5f3c2a5728d40ebd1f3f1
treec233aa4899ff2b883a4da45bce8fecb89f198636
parent411a1794120fa044f92ff53f41a4aa81018ed507
parent131f3c96d265d965d6c93280f9666b23b384802c
Merge branch 'jk/grep-no-index-fix' into maint

The code to parse the command line "git grep <patterns>... <rev>
[[--] <pathspec>...]" has been cleaned up, and a handful of bugs
have been fixed (e.g. we used to check "--" if it is a rev).

* jk/grep-no-index-fix:
  grep: treat revs the same for --untracked as for --no-index
  grep: do not diagnose misspelt revs with --no-index
  grep: avoid resolving revision names in --no-index case
  grep: fix "--" rev/pathspec disambiguation
  grep: re-order rev-parsing loop
  grep: do not unnecessarily query repo for "--"
  grep: move thread initialization a little lower