From: Patrick Steinhardt Date: Tue, 17 Dec 2024 06:44:00 +0000 (+0100) Subject: graph: stop using `the_repository` X-Git-Tag: v2.49.0-rc0~96^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1335a940748d8e525b3a5e095f352c85644accf;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/graph.c b/graph.c index 52205f75c3..26f6fbf000 100644 --- a/graph.c +++ b/graph.c @@ -1,4 +1,3 @@ -#define USE_THE_REPOSITORY_VARIABLE #define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" @@ -351,7 +350,7 @@ struct git_graph *graph_init(struct rev_info *opt) if (!column_colors) { char *string; - if (git_config_get_string("log.graphcolors", &string)) { + if (repo_config_get_string(opt->repo, "log.graphcolors", &string)) { /* not configured -- use default */ graph_set_column_colors(column_colors_ansi, column_colors_ansi_max);