summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-10-02 21:13:39 -0700
committerJunio C Hamano <gitster@pobox.com>2012-10-02 21:13:39 -0700
commitfa11d7c87940154f3f6463353335c6010b13e5db (patch)
treea661388a8f6bf2e3adb17dde81a0fb15c3041e7b /grep.h
parent5ce993a8126e4f428bc7862d4120b3ae81eb6a79 (diff)
parent38cfe915bfc3ea0dbcbedaa82c44460a2ada2f42 (diff)
downloadgit-fa11d7c87940154f3f6463353335c6010b13e5db.tar.gz
Merge branch 'nd/grep-reflog'
Teach the commands from the "log" family the "--grep-reflog" option to limit output by string that appears in the reflog entry when the "--walk-reflogs" option is in effect. * nd/grep-reflog: revision: make --grep search in notes too if shown log --grep-reflog: reject the option without -g revision: add --grep-reflog to filter commits by reflog messages grep: prepare for new header field filter
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/grep.h b/grep.h
index 8a28a676fc..c256ac6e15 100644
--- a/grep.h
+++ b/grep.h
@@ -29,9 +29,12 @@ enum grep_context {
enum grep_header_field {
GREP_HEADER_AUTHOR = 0,
- GREP_HEADER_COMMITTER
+ GREP_HEADER_COMMITTER,
+ GREP_HEADER_REFLOG,
+
+ /* Must be at the end of the enum */
+ GREP_HEADER_FIELD_MAX
};
-#define GREP_HEADER_FIELD_MAX (GREP_HEADER_COMMITTER + 1)
struct grep_pat {
struct grep_pat *next;
@@ -104,6 +107,7 @@ struct grep_opt {
#define GREP_BINARY_TEXT 2
int binary;
int extended;
+ int use_reflog_filter;
int pcre;
int relative;
int pathname;