Skip to content

Commit

Permalink
commit-graph: create write_commit_graph_context
Browse files Browse the repository at this point in the history
The write_commit_graph() method is too large and complex. To simplify
it, we should extract several helper functions. However, we will risk
repeating a lot of declarations related to progress incidators and
object id or commit lists.

Create a new write_commit_graph_context struct that contains the
core data structures used in this process. Replace the other local
variables with the values inside the context object. Following this
change, we will start to lift code segments wholesale out of the
write_commit_graph() method and into helper functions.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
derrickstolee authored and gitster committed Jun 12, 2019
1 parent 10bd0be commit c9905be
Showing 1 changed file with 194 additions and 196 deletions.

0 comments on commit c9905be

Please sign in to comment.