Skip to content

Commit f7a3767

Browse files
derrickstoleegitster
authored andcommitted
commit-graph: create write_commit_graph_context
The write_commit_graph() method is too large and complex. To simplify it, we should extract several small methods. 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 their own methods. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6ef3487 commit f7a3767

File tree

1 file changed

+194
-196
lines changed

1 file changed

+194
-196
lines changed

0 commit comments

Comments
 (0)