diff options
author | Jeff King <peff@peff.net> | 2006-09-18 02:52:42 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-20 11:14:39 -0700 |
commit | f69895fb0c5921f5b399f35a71caa9a023776ddf (patch) | |
tree | 107a56c28dd63abc3b0c1881ec3a3c4f58e2e69a /builtin-rev-list.c | |
parent | bd95fcd34543d7d98bff033c00054341165bc9ce (diff) | |
download | git-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.c | 4 |
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; |