On Wed, 2007-10-03 at 22:11 +0200, Jonas Fonseca wrote:I just sent an updated option parser patch that incorporates your suggestions along with a patch that ports builtin-add.c to use it. I looked briefly into porting over a few other builtins, but you're right, we need a couple of extra features for this to be really worthwile: * OPTION_SET_FLAG: sets the bit (we need to add a bit value that the option parser can or in) * OPTION_CLEAR_FLAG: clear the bit * OPTION_ADD: adds the value to the destination integer * OPTION_CALLBACK: calls the given function when the option is matched. We'll need this for builtin-grep that has positional args such as --and etc. Also, the option parser should probably verify that a string option isn't passed more than once. Bundling of single letter options would be nice to add. But the patch I just sent out should be a good start, and it lets us move forward with builtin-commit.c. cheers, Kristian - 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
| Eric W. Biederman | [PATCH 02/10] sysfs: Support for preventing unmounts. |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set... |
| David Miller | [GIT]: Networking |
