diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-12-17 07:44:00 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-12-18 10:44:31 -0800 |
| commit | e1335a940748d8e525b3a5e095f352c85644accf (patch) | |
| tree | aaa5b11d695ff25c3aeca7cd1379133dbc2bc30f /graph.c | |
| parent | 1b374ad71f702cd13f7395ccff54d5c4ee604b98 (diff) | |
| download | git-e1335a940748d8e525b3a5e095f352c85644accf.tar.gz | |
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>
Diffstat (limited to 'graph.c')
| -rw-r--r-- | graph.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |
