graph: stop using `the_repository`
Stop using `the_repository` in the "graph" subsystem by reusing the repository we already have available via `struct rev_info`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Dec 17, 2024 at 07:44 UTC
e1335a940748d8e525b3a5e095f352c85644accf
1 file changed
+1
-2
graph.c
+1
-2
@@ -1,4 +1,3 @@
1
-#define USE_THE_REPOSITORY_VARIABLE
1
#define DISABLE_SIGN_COMPARE_WARNINGS
2
3
#include "git-compat-util.h"
@@ -351,7 +350,7 @@ struct git_graph *graph_init(struct rev_info *opt)
350
351
if (!column_colors) {
352
char *string;
354
- if (git_config_get_string("log.graphcolors", &string)) {
353
+ if (repo_config_get_string(opt->repo, "log.graphcolors", &string)) {
354
/* not configured -- use default */
355
graph_set_column_colors(column_colors_ansi,
356
column_colors_ansi_max);