git-commit-vandalism/t/helper
Heba Waly b3b18d1621 advice: revamp advise API
Currently it's very easy for the advice library's callers to miss
checking the visibility step before printing an advice. Also, it makes
more sense for this step to be handled by the advice library.

Add a new advise_if_enabled function that checks the visibility of
advice messages before printing.

Add a new helper advise_enabled to check the visibility of the advice
if the caller needs to carry out complicated processing based on that
value.

A list of advice_settings is added to cache the config variables names
and values, it's intended to replace advice_config[] and the global
variables once we migrate all the callers to use the new APIs.

Signed-off-by: Heba Waly <heba.waly@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-03-05 06:15:02 -08:00
..
.gitignore
test-advise.c advice: revamp advise API 2020-03-05 06:15:02 -08:00
test-chmtime.c
test-config.c
test-ctype.c
test-date.c
test-delta.c
test-dir-iterator.c
test-drop-caches.c Sync with 2.17.3 2019-12-06 16:29:15 +01:00
test-dump-cache-tree.c
test-dump-fsmonitor.c
test-dump-split-index.c
test-dump-untracked-cache.c
test-example-decorate.c
test-fake-ssh.c
test-genrandom.c
test-genzeros.c
test-hash-speed.c
test-hash.c
test-hashmap.c hashmap_entry: remove first member requirement from docs 2019-10-07 10:20:12 +09:00
test-index-version.c
test-json-writer.c
test-lazy-init-name-hash.c OFFSETOF_VAR macro to simplify hashmap iterators 2019-10-07 10:20:11 +09:00
test-line-buffer.c
test-match-trees.c
test-mergesort.c
test-mktemp.c
test-oidmap.c
test-online-cpus.c
test-parse-options.c
test-path-utils.c Sync with 2.20.2 2019-12-06 16:31:12 +01:00
test-pkt-line.c
test-prio-queue.c
test-progress.c test-progress: fix test failures on big-endian systems 2019-10-21 09:53:49 +09:00
test-reach.c
test-read-cache.c
test-read-graph.c test-tool: use 'read-graph' helper 2019-11-13 11:14:16 +09:00
test-read-midx.c
test-ref-store.c
test-regex.c
test-repository.c
test-revision-walking.c
test-run-command.c Merge branch 'js/mingw-inherit-only-std-handles' 2019-12-10 13:11:42 -08:00
test-scrap-cache-tree.c
test-serve-v2.c
test-sha1-array.c
test-sha1.c
test-sha1.sh
test-sha256.c
test-sigchain.c
test-strcmp-offset.c
test-string-list.c
test-submodule-config.c
test-submodule-nested-repo-config.c
test-subprocess.c
test-svn-fe.c
test-tool.c advice: revamp advise API 2020-03-05 06:15:02 -08:00
test-tool.h advice: revamp advise API 2020-03-05 06:15:02 -08:00
test-trace2.c
test-urlmatch-normalization.c
test-wildmatch.c
test-windows-named-pipe.c
test-write-cache.c
test-xml-encode.c