RFC parse-options: improve early option scanning
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | rev-list: handle arguments in early option scanbuiltin/ t/ | +78 | 0 replies | |
| 2/2 | parse-options: add early option scanningparse-options.c parse-options.h t/ +1 more | +484 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/2] parse-options: improve early option scanning
This RFC series shares my progress on improving early option scanning in rev-list and exploring a reusable scanning API.
The first patch updates rev-list's early scan to account for options that consume arguments.
The second patch introduces a generic early option-scanning API with tests, as a step towards a more reusable solution.
The rev-list patch still uses an initial hardcoded option list, which I recognise is fragile based on the review feedback. I am investigating how to avoid this limitation and how best to integrate revision-option argument parsing without triggering unwanted parsing side effects.
I would appreciate feedback on the direction of this work, particularly the API design and its integration with revision option parsing.
Azuama Odinaka Maximus (2):
rev-list: handle arguments in early option scan
parse-options: add early option scanning
builtin/rev-list.c | 55 +++++++- parse-options.c | 249 ++++++++++++++++++++++++++++++---- parse-options.h | 22 +++ t/helper/test-parse-options.c | 236 ++++++++++++++++++++++++++++++++ t/t0040-parse-options.sh | 6 + t/t6022-rev-list-missing.sh | 26 ++++ 6 files changed, 562 insertions(+), 32 deletions(-)
Signature · 1 line
2.53.0