From f69895fb0c5921f5b399f35a71caa9a023776ddf Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 18 Sep 2006 02:52:42 -0400 Subject: rev-list: fix segfault with --{author,committer,grep} We need to save the commit buffer if we're going to match against it. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- builtin-rev-list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'builtin-rev-list.c') diff --git a/builtin-rev-list.c b/builtin-rev-list.c index 1f3333da38..dbfee750aa 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -269,7 +269,9 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix) revs.diff) usage(rev_list_usage); - save_commit_buffer = revs.verbose_header; + save_commit_buffer = revs.verbose_header || + revs.header_filter || + revs.message_filter; track_object_refs = 0; if (bisect_list) revs.limited = 1; -- cgit v1.2.1