Skip to content

Commit e1335a9

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1b374ad commit e1335a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graph.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
21
#define DISABLE_SIGN_COMPARE_WARNINGS
32

43
#include "git-compat-util.h"
@@ -351,7 +350,7 @@ struct git_graph *graph_init(struct rev_info *opt)
351350

352351
if (!column_colors) {
353352
char *string;
354-
if (git_config_get_string("log.graphcolors", &string)) {
353+
if (repo_config_get_string(opt->repo, "log.graphcolors", &string)) {
355354
/* not configured -- use default */
356355
graph_set_column_colors(column_colors_ansi,
357356
column_colors_ansi_max);

0 commit comments

Comments
 (0)