]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: create local repository pointer
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 25 Feb 2021 18:19:42 +0000 (18:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Feb 2021 23:10:40 +0000 (15:10 -0800)
commitc7ef8fe608819f05526408c741719589599a544a
treec7ee83ec81bdb9e227cd32c31f5ce9396b7c922f
parentc4ff24bbb354377a6a7937744fbbef2898243fc7
commit-graph: create local repository pointer

The write_commit_graph() method uses 'the_repository' in a few places. A
new need for a repository pointer is coming in the following change, so
group these instances into a local variable 'r' that could eventually
become part of the method signature, if so desired.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c