]> Kevux Git Server - rit/commit
pretty.c: rework describe options parsing for better extensibility
authorEli Schwartz <eschwartz@archlinux.org>
Sun, 31 Oct 2021 17:15:08 +0000 (13:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Nov 2021 17:34:32 +0000 (10:34 -0700)
commit3c6eb4ec50d9a4a9017fb8c1f220d12dceb206b1
tree629b7143891befaa5e4fe4863e2d3f3c2a9ae150
parent9d530dc0024503ab4218fe6c4395b8a0aa245478
pretty.c: rework describe options parsing for better extensibility

It contains option arguments only, not options. We would like to add
option support here too, but to do that we need to distinguish between
different types of options.

Lay out the groundwork for distinguishing between bools, strings, etc.
and move the central logic (validating values and pushing new arguments
to *args) into the successful match, because that will be fairly
conditional on what type of argument is being parsed.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c