Thread (40 messages) flat view 40 messages, 4 authors, 2021-09-23
STALE1810d

Revision v1 of 3 in this series.

Revisions (3)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]

[PATCH 0/6] help: fix usage nits & bugs, completion shellscript->C

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-09-08 15:24:34

This series fixes various bugs & edge cases in the "git help" command,
and improves and splits the internal-only "--completion-for-config"
option into two, and as a result can get rid of an awk/sort -u
pipeline in the bash completion.

This is all rather straightforward and boring, the first patch
mentions an interaction with my not-picked-up-by-Junio-yet series to
fix parse_options usage alignment at [1], but while the two strictly
speaking "semantically conflict" (in combination they'll produce
different results), the exact whitespace padding of "git help -h" is a
trivial enough issue that they can and should be considered
indepedently.

1. https://lore.kernel.org/git/cover-0.2-00000000000-20210901T110917Z-avarab@gmail.com/ (local)

Ævar Arnfjörð Bjarmason (6):
  help: correct the usage string in -h and documentation
  help: correct usage string for "git help --guides"
  help tests: add test for --config output
  help: refactor "for_human" control flow in cmd_help()
  help: correct logic error in combining --all and --config
  help / completion: make "git help" do the hard work

 Documentation/git-help.txt             |   9 ++-
 builtin/help.c                         | 102 +++++++++++++++++--------
 contrib/completion/git-completion.bash |  21 +++--
 t/t0012-help.sh                        |  45 +++++++++++
 4 files changed, 131 insertions(+), 46 deletions(-)

-- 
2.33.0.825.g2bf60429931
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help