commit - 7a62478bb7a4f285bffe55d43857476d9f54b225
commit + 7302608848e67227a8541d29907f9875ba7ff3e8
blob - 05b558889643ca06b7d8208e7b2c27e902b41a90
blob + 96faf1dd91540d1d1befc3f6d58290a55995217a
--- lib/commit_graph.c
+++ lib/commit_graph.c
struct got_commit_graph_node {
struct got_object_id id;
- time_t commit_timestamp;
+ time_t timestamp;
/* Used during graph iteration. */
TAILQ_ENTRY(got_commit_graph_node) entry;
/* Ensure that an iteration in progress will see this new commit. */
while (n) {
next = TAILQ_NEXT(n, entry);
- if (next && node->commit_timestamp >= next->commit_timestamp) {
+ if (next && node->timestamp >= next->timestamp) {
TAILQ_INSERT_BEFORE(next, node, entry);
return;
}
return got_error_from_errno();
memcpy(&node->id, commit_id, sizeof(node->id));
- node->commit_timestamp = commit->committer_time;
+ node->timestamp = commit->committer_time;
err = got_object_idset_add(graph->node_ids, &node->id, node);
if (err) {