status: respect advice.statusHints for ahead/behind advice
commit491e3075a29a0475984098a85cdbbb185d5a1e33
authorJeff King <peff@peff.net>
Mon, 3 Dec 2012 06:16:57 +0000 (3 01:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Dec 2012 17:10:47 +0000 (3 09:10 -0800)
treef8d5f8d54da44a04370533d128b412c63afcd3ec
parentc190ced600223f0774f6ba33f608b1e1347e623e
status: respect advice.statusHints for ahead/behind advice

If the user has unset advice.statusHints, we already
suppress the "use git reset to..." hints in each stanza. The
new "use git push to publish..." hint is the same type of
hint. Let's respect statusHints for it, rather than making
the user set yet another advice flag.

Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c