Thread (1 message) 1 message, 1 author, 2019-05-13

Re: [PATCH v4 01/11] commit-graph: fix the_repository reference

From: Junio C Hamano <hidden>
Date: 2019-05-13 02:57:07

"Derrick Stolee via GitGitGadget" [off-list ref] writes:
From: Derrick Stolee <redacted>

The parse_commit_buffer() method takes a repository pointer, so it
should not refer to the_repository anymore.
Yup, makes sense.  Thanks for spotting.
quoted hunk
Signed-off-by: Derrick Stolee <redacted>
---
 commit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commit.c b/commit.c
index a5333c7ac6..e4d1233226 100644
--- a/commit.c
+++ b/commit.c
@@ -443,7 +443,7 @@ int parse_commit_buffer(struct repository *r, struct commit *item, const void *b
 	item->date = parse_commit_date(bufptr, tail);
 
 	if (check_graph)
-		load_commit_graph_info(the_repository, item);
+		load_commit_graph_info(r, item);
 
 	return 0;
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help