Commit f35c2426d4c58783c933a6e27f798cbe3ee25c9a

Stefan Sperling 2019-07-15T15:18:39

make 'got rebase' close its commit graph when it is no longer needed

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 25dbaaa..fd5ec92 100644
--- a/got/got.c
+++ b/got/got.c
@@ -3862,6 +3862,8 @@ cmd_rebase(int argc, char *argv[])
 			commit_id = parent_id;
 		}
 	}
+	got_commit_graph_close(graph);
+	graph = NULL;
 
 	if (SIMPLEQ_EMPTY(&commits)) {
 		if (continue_rebase)