commit - f970fa8a980e124a69269d38459cc069c8b5e7ef
commit + 1c7a5dcbe20843cb23eab00166eb8b16db138086
blob - 830f24eb5907f52dcc34271a2cc8f92b9e261260
blob + ccee9517ddfdc0efeae73de8d0fcae2768ca9857
--- lib/commit_graph.c
+++ lib/commit_graph.c
struct got_commit_graph_node *child_node)
{
struct got_commit_graph_node *n, *next;
-
+
if (TAILQ_EMPTY(&graph->iter_list)) {
TAILQ_INSERT_TAIL(&graph->iter_list, node, entry);
return;
}
node->nparents++;
}
- node->commit_timestamp = mktime(&commit->tm_committer);
- if (node->commit_timestamp == -1) {
- free_node(node);
- return got_error_from_errno();
- }
err = got_object_idset_add(NULL, graph->node_ids, &node->id, node);
if (err) {
}
}
- if (changed)
+ if (changed) {
+ node->commit_timestamp = mktime(&commit->tm_committer);
+ if (node->commit_timestamp == -1) {
+ free_node(node);
+ return got_error_from_errno();
+ }
add_node_to_iter_list(graph, node, child_node);
+ }
if (branch_done)
err = close_branch(graph, commit_id);