commit-graph write: add progress output
[gitweb.git] / builtin / commit-graph.c
index c7d0db5ab4b668618720eb30cffad904f0c57b14..bc0fa9ba525a2e2a67610c2bbbaba37e00676cb8 100644 (file)
@@ -115,6 +115,8 @@ static int graph_read(int argc, const char **argv)
                printf(" large_edges");
        printf("\n");
 
+       free_commit_graph(graph);
+
        return 0;
 }
 
@@ -149,7 +151,7 @@ static int graph_write(int argc, const char **argv)
                opts.obj_dir = get_object_directory();
 
        if (opts.reachable) {
-               write_commit_graph_reachable(opts.obj_dir, opts.append);
+               write_commit_graph_reachable(opts.obj_dir, opts.append, 1);
                return 0;
        }
 
@@ -169,7 +171,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;