]> git.ipfire.org Git - thirdparty/git.git/commit
rev-list: refactor early option parsing
authorJustin Tobler <jltobler@gmail.com>
Wed, 19 Mar 2025 18:34:07 +0000 (13:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2025 10:40:02 +0000 (03:40 -0700)
commitc9907a19169c186da444e22991df7c9f4237ac40
treea29d82e779807846f81e5e19f2955fe464c49a8a
parent1481e291129de8c9be8f85cee55071ce9dbc6e91
rev-list: refactor early option parsing

Before invoking `setup_revisions()`, the `--missing` and
`--exclude-promisor-objects` options are parsed early. In a subsequent
commit, another option is added that must be parsed early.

Refactor the code to parse both options in a single early pass.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c