Skip to content

allow for configuring option abbreviation + fix

Ævar Arnfjörð Bjarmason git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2parse-options: allow for configuring option abbreviationDocumentation/config/core.txt parse-options.c t/README +2 more+49 -148 replies
2/2parse-options: don't emit "ambiguous option" for aliasesbuiltin/clone.c parse-options.c parse-options.h +1 more+11 -310 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] allow for configuring option abbreviation + fix

This is based on Johannes's just-submitted
https://public-inbox.org/git/[email protected]/

Some of this in my 1/2 could obviously be shortened if the "GIT_TEST_ABBREVIATED_OPTIONS" name was used by default, but I'll leave it up to discussion whether it's worth it to go for the route I took here, and if so to rebase the whole thing or not.

While I'm at it fix a bug I noticed a while ago in 2/2 related to the option abbreviation being silly and tripping over itself over an aliased option.

Ævar Arnfjörð Bjarmason (2):
parse-options: allow for configuring option abbreviation
parse-options: don't emit "ambiguous option" for aliases

 Documentation/config/core.txt | 12 ++++++++++++
 builtin/clone.c               |  4 ++--
 parse-options.c               | 22 +++++++++++++++++-----
 parse-options.h               |  2 ++
 t/README                      |  4 ++--
 t/t0040-parse-options.sh      | 27 ++++++++++++++++++++++-----
 t/test-lib.sh                 |  6 +++---
 7 files changed, 60 insertions(+), 17 deletions(-)
Signature · 1 line
2.21.0.360.g471c308f928