summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Heba Waly <heba.waly@gmail.com>2020-01-07 23:12:32 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-01-15 12:15:04 -0800
commitbf66db37f1e17b71e8edb93d78ec407fbc1e0989 (patch)
treef7deea5a692390a58ab180197cac01e29d5b81fa /t
parentGit 2.25 (diff)
downloadtgif-bf66db37f1e17b71e8edb93d78ec407fbc1e0989.tar.xz
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t3700-add.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index c325167b90..a649805369 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -326,7 +326,7 @@ test_expect_success 'git add --dry-run of an existing file output' "
cat >expect.err <<\EOF
The following paths are ignored by one of your .gitignore files:
ignored-file
-Use -f if you really want to add them.
+hint: Use -f if you really want to add them.
EOF
cat >expect.out <<\EOF
add 'track-this'