user-manual: use pithier example commit
[gitweb.git] / builtin-rev-list.c
index c0329dcecdbb4775b2c438a0bf6429a5ee72b18e..2eb919f39cfe589bf7cfa8c77ec9b1ae29676efe 100644 (file)
@@ -95,7 +95,7 @@ static void show_commit(struct commit *commit)
                static char pretty_header[16384];
                pretty_print_commit(revs.commit_format, commit, ~0,
                                    pretty_header, sizeof(pretty_header),
-                                   revs.abbrev, NULL, NULL, revs.relative_date);
+                                   revs.abbrev, NULL, NULL, revs.date_mode);
                printf("%s%c", pretty_header, hdr_termination);
        }
        fflush(stdout);
@@ -310,7 +310,7 @@ static struct commit_list *find_bisection(struct commit_list *list,
        show_list("bisection 2 sorted", 0, nr, list);
 
        *all = nr;
-       weights = xcalloc(on_list, sizeof(int*));
+       weights = xcalloc(on_list, sizeof(*weights));
        counted = 0;
 
        for (n = 0, p = list; p; p = p->next) {