Merge branch 'lt/revision-bisect'
authorJunio C Hamano <gitster@pobox.com>
Mon, 16 Nov 2009 00:40:39 +0000 (16:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Nov 2009 00:40:39 +0000 (16:40 -0800)
* lt/revision-bisect:
Add '--bisect' revision machinery argument

1  2 
builtin-rev-list.c
diff --combined builtin-rev-list.c
index 42cc8d8872afbc1302f14e089db430014330f7c3,32bf033b5b02c8c920aec81a10b0a0da873774e0..ac1136a3f5a6d61e8b5ae18ae32451674effb0d8
@@@ -96,10 -96,9 +96,10 @@@ static void show_commit(struct commit *
  
        if (revs->verbose_header && commit->buffer) {
                struct strbuf buf = STRBUF_INIT;
 -              pretty_print_commit(revs->commit_format, commit,
 -                                  &buf, revs->abbrev, NULL, NULL,
 -                                  revs->date_mode, 0);
 +              struct pretty_print_context ctx = {0};
 +              ctx.abbrev = revs->abbrev;
 +              ctx.date_mode = revs->date_mode;
 +              pretty_print_commit(revs->commit_format, commit, &buf, &ctx);
                if (revs->graph) {
                        if (buf.len) {
                                if (revs->commit_format != CMIT_FMT_ONELINE)
@@@ -320,6 -319,8 +320,8 @@@ int cmd_rev_list(int argc, const char *
  
        memset(&info, 0, sizeof(info));
        info.revs = &revs;
+       if (revs.bisect)
+               bisect_list = 1;
  
        quiet = DIFF_OPT_TST(&revs.diffopt, QUIET);
        for (i = 1 ; i < argc; i++) {