summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-02 22:30:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-02 22:30:44 (GMT)
commit87ece7ce1133ebc5d339cad5f6f92c02e5fc712d (patch)
tree80a92c51969d8893f56b74a595ab9c260cca1091 /grep.h
parent562413eb2938b7a1aa85a2ae157ef162d51e55dc (diff)
parent9d8db06eb4a5d5577db559a0059a377914c1ce5a (diff)
downloadgit-87ece7ce1133ebc5d339cad5f6f92c02e5fc712d.zip
git-87ece7ce1133ebc5d339cad5f6f92c02e5fc712d.tar.gz
git-87ece7ce1133ebc5d339cad5f6f92c02e5fc712d.tar.bz2
Merge branch 'tb/grep-only-matching'
"git grep" learned the "--only-matching" option. * tb/grep-only-matching: grep.c: teach 'git grep --only-matching' grep.c: extract show_line_header()
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/grep.h b/grep.h
index 01d2cba..0ba62a1 100644
--- a/grep.h
+++ b/grep.h
@@ -163,6 +163,7 @@ struct grep_opt {
int relative;
int pathname;
int null_following_name;
+ int only_matching;
int color;
int max_depth;
int funcname;