mbox series

[0/2] reflog.c: switch to use parse-options API

Message ID pull.1175.git.git.1640932151.gitgitgadget@gmail.com (mailing list archive)
Headers show
Series reflog.c: switch to use parse-options API | expand

Message

Philippe Blain via GitGitGadget Dec. 31, 2021, 6:29 a.m. UTC
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
    subcommand

 builtin/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