pr-508/HebaWaly/formatting_hints-v2
tagged this
07 Jan 23:12
The advise function in advice.c 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 allow us to control the hint messages based on advice.* configuration variables. This patch suggests using this advise function whenever displaying hints to improve the user experience, as the user's eyes will get used to the format and will scan the screen for the yellow hints whenever confused instead of reading all the output lines looking for advice. Heba Waly (1): add: use advise function to display hints advice.c | 2 ++ advice.h | 1 + builtin/add.c | 6 ++++-- t/t3700-add.sh | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) base-commit: 0a76bd7381ec0dbb7c43776eb6d1ac906bca29e6 Submitted-As: https://lore.kernel.org/git/pull.508.v2.git.1578438752.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.508.git.1577934241.gitgitgadget@gmail.com
Assets 2
-
2020-01-07T23:12:32Z -
2020-01-07T23:12:32Z -