summaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-09-29 11:41:28 +0700
committerJunio C Hamano <gitster@pobox.com>2012-09-29 11:41:14 -0700
commit72fd13f71c18b438ca3e482c126bcbcaa2dac650 (patch)
tree8b9d4b67161ee6eb9ef8a62b175278c69a6e8ba3 /grep.c
parentad4813b3c2513c5dc7e84305ab8a393b32124977 (diff)
downloadgit-72fd13f71c18b438ca3e482c126bcbcaa2dac650.tar.gz
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.c')
-rw-r--r--grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/grep.c b/grep.c
index 8d73995e87..d70dcdf0ef 100644
--- a/grep.c
+++ b/grep.c
@@ -697,6 +697,7 @@ static struct {
} header_field[] = {
{ "author ", 7 },
{ "committer ", 10 },
+ { "reflog ", 7 },
};
static int match_one_pattern(struct grep_pat *p, char *bol, char *eol,