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>
This commit is contained in:
Jeff King 2006-09-18 02:52:42 -04:00 коммит произвёл Junio C Hamano
Родитель bd95fcd345
Коммит f69895fb0c
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;