From: Derrick Stolee Date: Wed, 12 Jun 2019 13:29:40 +0000 (-0700) Subject: commit-graph: create write_commit_graph_context X-Git-Tag: v2.23.0-rc0~86^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c9905beade13efff6be9c15ebe03d07fe5278ccc?hp=c9905beade13efff6be9c15ebe03d07fe5278ccc commit-graph: create write_commit_graph_context 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 Signed-off-by: Junio C Hamano ---