Re: [RFC] Re: Convert 'git blame' to parse_options()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Tuesday, June 24, 2008 - 10:34 am

On Tue, Jun 24, 2008 at 09:59:47AM -0700, Linus Torvalds wrote:


Perhaps I was confused about the definition of "single", because
throughout this thread you seem to be making multiple complaints about
parse_options, including its lack of a "stop on unknown" flag, a
"continue on unknown flag", and the movement of arguments within the
argv array.

But whether you want to call that a "single" problem or not, my point
was that I am not talking about most of those things.

So I will say one last time, as clearly as I possibly can, what I was
trying to bring to the discussion:

  - You proposed a CONTINUE_ON_UNKNOWN type of flag.

  - It is impossible for that mechanism to be correct in all cases, due
    to the syntactic rules for command lines. IOW, you cannot parse an
    element until you know the function of the element to the left.

  - I wanted to mention it specifically, because that exact mechanism
    had already been proposed in a patch last week, and Junio said "this
    conceptually is broken".

  - There has been discussion underway about what is the best mechanism
    to solve the same situation.

That is the entirety of my point. I am glad you are trying to increase
parse_options uptake. There is obviously a problem with multi-stage
parsers. I talked about one way for them to be handled. I think there
are multiple ways of going about it. It looks like STOP_ON_UNKNOWN
is the way that Pierre is pursuing. I think this is good, because it
doesn't suffer from the corner cases that CONTINUE_ON_UNKNOWN does.

And now I will stop making these points, because I don't think I am
capable of saying them any more clearly than I already have, and because
Pierre seems to be moving in a sane direction.


Again, did you even read the mail you are responding to? The phrase
"ought to be" was totally incidental to the point I was making. I could
just as easily have said "and this is the method that I think will be
acceptable for dealing with this problem." But for some reason you
insist on harping on the phrase as if I have proposed magical fairies
should come work on the code, and totally ignoring the actual points
that were made.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Convert 'git blame' to parse_options(), Linus Torvalds, (Sun Jun 22, 10:15 pm)
Re: Convert 'git blame' to parse_options(), Junio C Hamano, (Sun Jun 22, 11:35 pm)
[RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 1:22 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Johannes Schindelin, (Mon Jun 23, 5:26 am)
Re: Convert 'git blame' to parse_options(), Johannes Schindelin, (Mon Jun 23, 5:28 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 8:53 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 9:11 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 9:25 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Johannes Schindelin, (Mon Jun 23, 9:25 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Johannes Schindelin, (Mon Jun 23, 10:04 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 10:06 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Mon Jun 23, 10:15 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 10:21 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Mon Jun 23, 10:26 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 10:32 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Mon Jun 23, 11:15 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 11:20 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Mon Jun 23, 11:33 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 11:36 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Johannes Schindelin, (Mon Jun 23, 11:39 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Johannes Schindelin, (Mon Jun 23, 11:41 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 11:47 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 12:16 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 12:24 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Mon Jun 23, 12:53 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 1:04 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 1:12 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 2:09 pm)
[PATCH] parse-opt: have parse_options_{start,end}., Pierre Habouzit, (Mon Jun 23, 2:11 pm)
[PATCH] parse-opt: Export a non NORETURN usage dumper., Pierre Habouzit, (Mon Jun 23, 2:11 pm)
[PATCH] parse-opt: create parse_options_step., Pierre Habouzit, (Mon Jun 23, 2:11 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 2:23 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Junio C Hamano, (Mon Jun 23, 2:23 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 2:26 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 2:28 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Mon Jun 23, 2:41 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 2:47 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Junio C Hamano, (Mon Jun 23, 3:11 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 3:24 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Mon Jun 23, 3:36 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Junio C Hamano, (Mon Jun 23, 5:30 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Mon Jun 23, 10:35 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Tue Jun 24, 1:24 am)
Making parse-opt incremental, reworked series, Pierre Habouzit, (Tue Jun 24, 2:12 am)
[PATCH 1/7] parse-opt: have parse_options_{start,end}., Pierre Habouzit, (Tue Jun 24, 2:12 am)
[PATCH 2/7] parse-opt: Export a non NORETURN usage dumper., Pierre Habouzit, (Tue Jun 24, 2:12 am)
[PATCH 3/7] parse-opt: create parse_options_step., Pierre Habouzit, (Tue Jun 24, 2:12 am)
[PATCH 7/7] Migrate git-blame to parse-option partially., Pierre Habouzit, (Tue Jun 24, 2:12 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Tue Jun 24, 9:59 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Tue Jun 24, 10:05 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Johannes Schindelin, (Tue Jun 24, 10:13 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Tue Jun 24, 10:34 am)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Linus Torvalds, (Tue Jun 24, 10:44 am)
Re: [PATCH 5/7] parse-opt: fake short strings for callers ..., Pierre Habouzit, (Tue Jun 24, 12:26 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Tue Jun 24, 12:30 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Pierre Habouzit, (Tue Jun 24, 12:43 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Jeff King, (Tue Jun 24, 12:46 pm)
Re: [RFC] Re: Convert 'git blame' to parse_options(), Johannes Sixt, (Tue Jun 24, 11:09 pm)
Re: [PATCH 5/7] parse-opt: fake short strings for callers ..., Andreas Ericsson, (Wed Jun 25, 8:07 am)