commit | baa6378ff2106738c74213280904507d0ed8129c | [log] [tgz] |
---|---|---|
author | Junio C Hamano <gitster@pobox.com> | Sat Sep 29 11:59:52 2012 -0700 |
committer | Junio C Hamano <gitster@pobox.com> | Sat Sep 29 12:07:04 2012 -0700 |
tree | f658d6228f0bf0b4ad34c03d79de46427243b1d1 | |
parent | 72fd13f71c18b438ca3e482c126bcbcaa2dac650 [diff] [blame] |
log --grep-reflog: reject the option without -g Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/grep.c b/grep.c index d70dcdf..edc7776 100644 --- a/grep.c +++ b/grep.c
@@ -64,6 +64,8 @@ { struct grep_pat *p = create_grep_pat(pat, strlen(pat), "header", 0, GREP_PATTERN_HEAD, field); + if (field == GREP_HEADER_REFLOG) + opt->use_reflog_filter = 1; do_append_grep_pat(&opt->header_tail, p); }