summaryrefslogtreecommitdiff
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2016-12-16 19:03:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-22 19:47:33 (GMT)
commit4538eef564c81c96f2874ccadc54d3c69cc0e19c (patch)
tree3f3b3e7f824a66e6b9f6a291107636822d5f1a83 /builtin/grep.c
parent9ebf689aad72bfc091da21e1d73a05308f1ace85 (diff)
downloadgit-4538eef564c81c96f2874ccadc54d3c69cc0e19c.zip
git-4538eef564c81c96f2874ccadc54d3c69cc0e19c.tar.gz
git-4538eef564c81c96f2874ccadc54d3c69cc0e19c.tar.bz2
grep: add submodules as a grep source type
Add `GREP_SOURCE_SUBMODULE` as a grep_source type and cases for this new type in the various switch statements in grep.c. When initializing a grep_source with type `GREP_SOURCE_SUBMODULE` the identifier can either be NULL (to indicate that the working tree will be used) or a SHA1 (the REV of the submodule to be grep'd). If the identifier is a SHA1 then we want to fall through to the `GREP_SOURCE_SHA1` case to handle the copying of the SHA1. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/grep.c')
0 files changed, 0 insertions, 0 deletions