summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-09-29 11:41:28 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-29 11:41:14 -0700
commit72fd13f71c18b438ca3e482c126bcbcaa2dac650 (patch)
tree8b9d4b67161ee6eb9ef8a62b175278c69a6e8ba3 /grep.h
parentgrep: prepare for new header field filter (diff)
downloadtgif-72fd13f71c18b438ca3e482c126bcbcaa2dac650.tar.xz
revision: add --grep-reflog to filter commits by reflog messages
Similar to --author/--committer which filters commits by author and committer header fields. --grep-reflog adds a fake "reflog" header to commit and a grep filter to search on that line. All rules to --author/--committer apply except no timestamp stripping. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 d54adbe56c..6e78b96a2e 100644
--- a/grep.h
+++ b/grep.h
@@ -30,6 +30,7 @@ enum grep_context {
enum grep_header_field {
GREP_HEADER_AUTHOR = 0,
GREP_HEADER_COMMITTER,
+ GREP_HEADER_REFLOG,
/* Must be at the end of the enum */
GREP_HEADER_FIELD_MAX