]> git.ipfire.org Git - thirdparty/git.git/commit - help.h
help: add --config to list all available config
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 26 May 2018 13:55:24 +0000 (15:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 May 2018 05:51:28 +0000 (14:51 +0900)
commit3ac68a93fd2b984e2a7e570217d2646a208ffcc3
treea2daa2ec0763d187815899c677681ff7ccb6acf8
parenta46baac61ebc6a8b187f76bcd49b625e0d4f408e
help: add --config to list all available config

Sometimes it helps to list all available config vars so the user can
search for something they want. The config man page can also be used
but it's harder to search if you want to focus on the variable name,
for example.

This is not the best way to collect the available config since it's
not precise. Ideally we should have a centralized list of config in C
code (pretty much like 'struct option'), but that's a lot more work.
This will do for now.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 files changed:
Documentation/git-help.txt
advice.c
builtin/branch.c
builtin/clean.c
builtin/commit.c
builtin/help.c
diff.c
fsck.c
generate-cmdlist.sh
grep.c
help.c
help.h
log-tree.c