From: Azuama Odinaka Maximus Date: Tue, 10 Nov 2026 16:13:11 GMT Subject: [RFC PATCH 0/2] parse-options: improve early option scanning Message-ID: <20261110161314.35213-1-azuama69@gmail.com> 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. Signed-off-by: Azuama Odinaka Maximus 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(-) -- 2.53.0