Re: [PATCH v15 02/27] bisect: rewrite `check_term_format` shell function in C
- From
Pranit Bauva <pranit.bauva@gmail.com>
- Date
- Nov 15, 2016, 05:16 UTC
- Message-ID
- <CAFZEwPM9RSTGN54dzaw9gO9iZmsYjJ_d1SjUD4EzSDDbmh-XuA@mail.gmail.com>
- In-Reply-To
- <61aacd44-cb6a-2bbb-7fb4-933e2505040d@gmx.net>
Hey Stephan,
On Tue, Nov 15, 2016 at 3:50 AM, Stephan Beyer <s-beyer@gmx.net> wrote:
Show 7 quoted lines
> Hi, > > I saw in the recent "What's cooking" mail that this is still waiting > for review, so I thought I could interfere and help reviewing it from a > non-git-developer point of view. > But only two commits for today. The first one seems fine. The second > one makes me write this mail ;-)
Thanks a lot!
Show 15 quoted lines
> On 10/14/2016 04:14 PM, Pranit Bauva wrote:
>> +static int check_term_format(const char *term, const char *orig_term)
>> +{
> [...]
>> + if (one_of(term, "help", "start", "skip", "next", "reset",
>> + "visualize", "replay", "log", "run", NULL))
> [... vs ...]
>> -check_term_format () {
>> - term=$1
>> - git check-ref-format refs/bisect/"$term" ||
>> - die "$(eval_gettext "'\$term' is not a valid term")"
>> - case "$term" in
>> - help|start|terms|skip|next|reset|visualize|replay|log|run)
>
> Is there a reasons why "terms" has been dropped from the list?It is a mistake. I will rectify.. Thanks!
Regards, Pranit Bauva