Merge branch 'hw/advice-add-nothing'

Two help messages given when "git add" notices the user gave it
nothing to add have been updated to use advise() API.

* hw/advice-add-nothing:
  add: change advice config variables used by the add API
  add: use advise function to display hints
This commit is contained in:
Junio C Hamano
2020-02-14 12:54:19 -08:00
6 changed files with 26 additions and 4 deletions

View File

@ -158,7 +158,9 @@ test_expect_success 'submodule add to .gitignored path fails' '
cat <<-\EOF >expect &&
The following paths are ignored by one of your .gitignore files:
submod
Use -f if you really want to add them.
hint: Use -f if you really want to add them.
hint: Turn this message off by running
hint: "git config advice.addIgnoredFile false"
EOF
# Does not use test_commit due to the ignore
echo "*" > .gitignore &&