Git development
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] parse-options: improve early option scanning
@ 2026-11-10 16:13 Azuama Odinaka Maximus
  2026-11-10 16:13 ` [RFC PATCH 1/2] rev-list: handle arguments in early option scan Azuama Odinaka Maximus
  2026-11-10 16:13 ` [RFC PATCH 2/2] parse-options: add early option scanning Azuama Odinaka Maximus
  0 siblings, 2 replies; 3+ messages in thread
From: Azuama Odinaka Maximus @ 2026-11-10 16:13 UTC (permalink / raw)
  To: git
  Cc: tangajoris, pushkarkumarsingh1970, gitster, christian.couder,
	Azuama Odinaka Maximus

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 <azuama69@gmail.com>

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-10 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 16:13 [RFC PATCH 0/2] parse-options: improve early option scanning Azuama Odinaka Maximus
2026-11-10 16:13 ` [RFC PATCH 1/2] rev-list: handle arguments in early option scan Azuama Odinaka Maximus
2026-11-10 16:13 ` [RFC PATCH 2/2] parse-options: add early option scanning Azuama Odinaka Maximus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox