From 6a964f57e52bb25d9233ff6d38c82a16f21f60aa Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Thu, 12 Sep 2013 12:50:05 +0200 Subject: wt-status: turn advice_status_hints into a field of wt_status No behavior change in this patch, but this makes the display of status hints more flexible as they can be enabled or disabled for individual calls to commit.c:run_status(). Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- builtin/commit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'builtin/commit.c') diff --git a/builtin/commit.c b/builtin/commit.c index 94512c05bf..28c6309d46 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -169,6 +169,7 @@ static void status_init_config(struct wt_status *s, config_fn_t fn) gitmodules_config(); git_config(fn, s); determine_whence(s); + s->hints = advice_status_hints; /* must come after git_config() */ } static void rollback_index_files(void) -- cgit v1.2.1