Re: [PATCH v7 1/3] git-jump: add an optional argument '--stdout'
- From
Yoichi Nakayama <yoichi.nakayama@gmail.com>
- Date
- Nov 27, 2022, 00:31 UTC
- Message-ID
- <CAF5D8-uaR-BMoCzGuDsYDbBxaKFS0vzAvWY0mq12vBGtecwajQ@mail.gmail.com>
- In-Reply-To
- <221125.86y1rzmmfc.gmgdl@evledraar.gmail.com>
On Fri, Nov 25, 2022 at 6:10 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 29 quoted lines
> > > On Fri, Nov 25 2022, Yoichi Nakayama via GitGitGadget wrote: > > > From: Yoichi Nakayama <yoichi.nakayama@gmail.com> > > > +use_stdout= > > +while test $# -gt 0; do > > + case "$1" in > > + --stdout) > > + use_stdout=t > > + shift > > Put this "shift".... > > > + ;; > > + --*) > > + usage >&2 > > + exit 1 > > + ;; > > + *) > > + break > > + ;; > > + esac > > ... here instead, as I showed in a comment on 3/3 you'd need to to that, > or copy/paste it for every option once you have >1 option. See > e.g. "test_commit" in "t/test-lib-functions.sh" for a function with that > pattern.
Thanks. I'll apply this.
-- Yoichi NAKAYAMA