summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2006-09-18 02:52:42 -0400
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-20 11:14:39 -0700
commitf69895fb0c5921f5b399f35a71caa9a023776ddf (patch)
tree107a56c28dd63abc3b0c1881ec3a3c4f58e2e69a
parentrevision traversal: --author, --committer, and --grep. (diff)
downloadtgif-f69895fb0c5921f5b399f35a71caa9a023776ddf.tar.xz
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>
-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;