summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2006-09-18 02:52:42 -0400
committerJunio C Hamano <junkio@cox.net>2006-09-20 11:14:39 -0700
commitf69895fb0c5921f5b399f35a71caa9a023776ddf (patch)
tree107a56c28dd63abc3b0c1881ec3a3c4f58e2e69a /builtin-rev-list.c
parentbd95fcd34543d7d98bff033c00054341165bc9ce (diff)
downloadgit-f69895fb0c5921f5b399f35a71caa9a023776ddf.tar.gz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c4
1 files changed, 3 insertions, 1 deletions
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;