]> git.ipfire.org Git - thirdparty/git.git/commit
add: use advise function to display hints
authorHeba Waly <heba.waly@gmail.com>
Tue, 7 Jan 2020 23:12:32 +0000 (23:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2020 20:15:04 +0000 (12:15 -0800)
commitbf66db37f1e17b71e8edb93d78ec407fbc1e0989
treef7deea5a692390a58ab180197cac01e29d5b81fa
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783
add: use advise function to display hints

Use the advise function in advice.c to display hints to the users, as
it provides a neat and a standard format for hint messages, i.e: the
text is colored in yellow and the line starts by the word "hint:".

Also this will enable us to control the messages using advice.*
configuration variables.

Signed-off-by: Heba Waly <heba.waly@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
advice.c
advice.h
builtin/add.c
t/t3700-add.sh