Merge branch 'ds/commit-graph-with-grafts'
[gitweb.git] / builtin / commit-graph.c
index da737df321528088d8aa20e3e87e803336b1f550..22b974f4b434913cf3ebe9e4073d2cb847f8a468 100644 (file)
@@ -155,7 +155,7 @@ static int graph_write(int argc, const char **argv)
        read_replace_refs = 0;
 
        if (opts.reachable) {
-               write_commit_graph_reachable(opts.obj_dir, opts.append);
+               write_commit_graph_reachable(opts.obj_dir, opts.append, 1);
                return 0;
        }
 
@@ -175,7 +175,8 @@ static int graph_write(int argc, const char **argv)
        write_commit_graph(opts.obj_dir,
                           pack_indexes,
                           commit_hex,
-                          opts.append);
+                          opts.append,
+                          1);
 
        string_list_clear(&lines, 0);
        return 0;