[PATCH 0/2] reflog.c: switch to use parse-options API
- From
John Cai via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Dec 31, 2021, 06:29 UTC
- Message-ID
- <pull.1175.git.git.1640932151.gitgitgadget@gmail.com>
Switch out manual argv parsing for the reflog expire subcommand to use the parse-options API. This reduces code redundancy by consolidating option parsing logic.
John Cai (2):
builtin/reflog.c: use parse-options for expire subcommand
builtin/reflog.c: switch to use parse-options API for delete
subcommandbuiltin/reflog.c | 122 +++++++++++++++++++++++------------------------ 1 file changed, 60 insertions(+), 62 deletions(-)
base-commit: 55b058a8bbcc54bd93c733035c995abc7967e539 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1175%2Fjohn-cai%2Fjc%2Freflog-switch-to-option-parse-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1175/john-cai/jc/reflog-switch-to-option-parse-v1 Pull-Request: https://github.com/git/git/pull/1175
-- gitgitgadget