Re: [RFC] Re: Convert 'git blame' to parse_options()
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 23, 2008, 18:39 UTC
- Message-ID
- <alpine.DEB.1.00.0806231938020.6440@racer>
- In-Reply-To
- <alpine.LFD.1.10.0806231019170.2926@woody.linux-foundation.org>
Hi,
On Mon, 23 Jun 2008, Linus Torvalds wrote:
> (And yes, I can handle even the --help cases. It's actually not that > hard to just remember all the different option structs you've seen, and > handle all of that totally independently internally in parse_options(). > You don't need recursion, you just need a trivial list of options.)
So what you actually do is just linearizing the recursion. Well then, yes, your solution is good.
However, I thought that recursion (as I implemented it) would make the revlist option parsing (which includes diff parsing) quite nice.
Whatever, Dscho