summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2013-09-12 12:50:05 +0200
committerJunio C Hamano <gitster@pobox.com>2013-09-12 11:45:10 -0700
commit6a964f57e52bb25d9233ff6d38c82a16f21f60aa (patch)
tree4d9ceed3a8b9f869da143b4d956d225f569de8b8 /builtin/commit.c
parent5c25dfaa794c7bbfa1b4d234b10f94ee371b1db0 (diff)
downloadgit-6a964f57e52bb25d9233ff6d38c82a16f21f60aa.tar.gz
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 <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c1
1 files changed, 1 insertions, 0 deletions
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)