From: Jeff King Date: Mon, 18 Sep 2006 06:52:42 +0000 (-0400) Subject: rev-list: fix segfault with --{author,committer,grep} X-Git-Tag: v1.4.3-rc1~43^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f69895fb0c5921f5b399f35a71caa9a023776ddf;p=git.git 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 --- diff --git a/builtin-rev-list.c b/builtin-rev-list.c index 1f3333da3..dbfee750a 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;