proposal for merge, take 1
Hi, thanks to the tremendous help I received from Dscho to make its
API and internals even better, I believe that my parseopt branch is ready for inclusion.
There is only _one_ small backward incompatibility (if other ones,
then it's not done on purpose and should be fixed) in git-show-ref: it had a -h short option, synonym of --head. I made this -H because -h is automatically diverted to "show usage" now, and it's counter-intuitive anyways. I rebased -i my series so that this patch comes last if people think it's a bad idea, so that the rest can be still be merged.
Note that patch 7/25 has a small discussion in it.
The series comes in 2 parts: the parse-options construction, split
into small pieces to introduce each feature. And the migration of a few builtins. Diffstats and shortlogs follow.
The branch is available from git://git.madism.org/git.git in the topic
branch ph/parseopt. I just rebased it onto the last "next" spearce produced.
Thanks to Alex Riesen, Johannes Schindelin, Jonas Fonseca and Kristian
Høgsberg for their help, patches and advices.
==============================================================================
Part 1
------------------------------------------------------------------------------
Alex Riesen (1):
Rework make_usage to print the usage message immediately
Johannes Schindelin (2):
Add tests for parse-options.c
parse-options: Allow abbreviated options when unambiguous
Pierre Habouzit (5):
Add a simple option parser.
parse-options: be able to generate usages automatically Add shortcuts for very often used options.
parse-options: make some arguments optional, add callbacks.
parse-options: allow callbacks to take no arguments at all.
.gitignore | 1 + Makefile | 6 +- parse-options.c | 328 ++++++++++++++++++++++++++++++++++++++++++++++ parse-options.h | 70 ++++++++++ t/t0040-parse-options.sh | 92 +++++++++++++ test-parse-options.c | 35 +++++ 6 files changed, 529 insertions(+), 3 deletions(-)
==============================================================================
Part 2
------------------------------------------------------------------------------
Jonas Fonseca (1):
Update manpages to reflect new short and long option aliases
Kristian Høgsberg (1):
Port builtin-add.c to use the new option parser.
Pierre Habouzit (16):
Make builtin-rm.c use parse_options.
Make builtin-mv.c use parse-options
Make builtin-branch.c use parse_options.
Make builtin-describe.c use parse_options
Make builtin-fetch.c use parse_options.
Make builtin-revert.c use parse_options.
Make builtin-update-ref.c use parse_options
Make builtin-symbolic-ref.c use parse_options.
Make builtin-http-fetch.c use parse_options.
Make builtin-for-each-ref.c use parse-opts.
Make builtin-fsck.c use parse_options.
Make builtin-count-objects.c use parse_options.
Make builtin-name-rev.c use parse_options.
Make builtin-pack-refs.c use parse_options.
Make builtin-show-ref.c use parse_options [small backward incompatibility]. Make builtin-pack-objects.c use parse_options.
Documentation/git-add.txt | 4 +- Documentation/git-branch.txt | 2 +- Documentation/git-mv.txt | 2 +- Documentation/git-rm.txt | 4 +- Documentation/git-show-ref.txt | 4 +- Documentation/git-symbolic-ref.txt | 2 +- builtin-add.c | 70 +++------ builtin-branch.c | 147 +++++++------------ builtin-count-objects.c | 32 ++-- builtin-describe.c | 70 ++++----- builtin-fetch.c | 146 ++++++------------ builtin-for-each-ref.c | 138 ++++++++---------- builtin-fsck.c | 80 +++------- builtin-http-fetch.c | 65 ++++----- builtin-mv.c | 84 +++++------ builtin-name-rev.c | 64 +++----- builtin-pack-objects.c | 294 +++++++++++++++++------------------- builtin-pack-refs.c | 47 +++---- builtin-revert.c | 67 ++++----- builtin-rm.c | 54 +++---- builtin-show-ref.c | 127 ++++++---------- builtin-symbolic-ref.c | 52 +++---- builtin-update-ref.c | 65 +++----- 23 files changed, 654 insertions(+), 966 deletions(-)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 09/25] Port builtin-add.c to use the new option parser.
Quoted 2 lines · Pierre Habouzit
(quoted diff) +1
-0+ OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update only filesthat git already knows about"),
"update only files in the current directory that git already knows about"
Re: [PATCH 09/25] Port builtin-add.c to use the new option parser.
Quoted 6 lines · Michael Witten
Quoted 2 lines · Pierre Habouzit
(quoted diff) +1
-0+ OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update onlyfiles that git already knows about"),
"update only files in the current directory that git already knows about"
Better grammar:
"update only files that git already knows about in the current directory"
Re: [PATCH 09/25] Port builtin-add.c to use the new option parser.
In reply to Michael WittenQuoted 7 lines · Michael Witten
Quoted 2 lines · Pierre Habouzit
(quoted diff) +1
-0+ OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update only files thatgit already knows about"),
"update only files in the current directory that git already knows about"
As a general rule, as I'm not a native speaker, I'd be glad if someone
went through the diffs and made it better english. I'm not sure what the more efficient way to merge those corrections is, as I'm not able to see if it's any better or not. So the someone mergint it (Shawn ?) may have to go through every OPTION_* and check the helps strings, and --amend fixes on top of the patches if needed. It looks like the best way to me.
Alternatively, a native speaker could propose a 26th patch that fixes
all of the bad strings on top of this series. But again, I won't do that, not because of lazyness, just because I can't decide :)
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
Re: [PATCH 09/25] Port builtin-add.c to use the new option parser.
In reply to Michael WittenHi,
Quoted 6 lines · Michael Witten
Quoted 2 lines · Pierre Habouzit
(quoted diff) +1
-0+ OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update only filesthat git already knows about"),
"update only files in the current directory that git already knows about"
"update tracked files"
Ciao,
Dscho
Re: [PATCH 09/25] Port builtin-add.c to use the new option parser.
Quoted 4 lines · Johannes Schindelin
Hi,
On Tue, 16 Oct 2007, Michael Witten wrote:
Quoted 8 lines
Quoted 6 lines · Pierre Habouzit
Quoted 3 lines
(quoted diff) +1
-0+ OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update only filesthat git already knows about"),
"update only files that git already knows about in the current directory"
"update tracked files"
"update tracked files in ."
;-)
Consider the description for git-commit's -a:
Quoted 3 lines
Tell the command to automatically stage files that have been modified and deleted, but new files you have not told git about are not affected.
However, that's not what -u does.
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
In reply to a message not in the archiveThis bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0
+ /* can be used to understand -A1B1 like -A1 -B1 */
+ if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) {
+ *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10);
+ return 0;
+ }
+#endifI'm not a huge fan, but people may like it. Feel free to keep the chunk, drop it, or enable it to your liking.
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
René
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
Quoted 12 lines · René Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
Quoted 2 lines
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
Oh yeah, you're right, well you example is not an issue, but indeed
you pointed out a real probable issue:
With that chunk, if an option that takes now an integer, becomes an
option with a suffix, we would then break backward compatibility. I'm not sure I'm clear, but if you had a -S option (for size) that for now gets sizes in kilooctet, git foo -S1000. Then if we decide that it's worth understanting M/G/.. suffixes for this option, we would make the type of the option be a CALLBACK using git_parse_ulong. This would mean that with such a change:
before:
git foo -S1000a would mean git foo -S1000 -a
After:
git foo -S1000a would be rejected because 'a' isn't a valid size suffix.
This of course become worse if we take git foo -S1000k where the
breakage would be silent.
This is a very strong argument _against_ this chunk IMO.
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
Quoted 15 lines · Pierre Habouzit
Quoted 14 lines · René Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endifI don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
...
Quoted 1 line
This is a very strong argument _against_ this chunk IMO.
Since everyone (including myself) is apparently strongly against this hunk I removed it when I cherry-picked this series from Pierre into my tree. The series will be in my pu tonight, but minus this hunk.
Signature · 1 line
Shawn.
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
Hi,
Quoted 14 lines · Shawn O. Pearce
Quoted 13 lines · Pierre Habouzit
Quoted 12 lines · René Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
...
Quoted 1 line
This is a very strong argument _against_ this chunk IMO.
Since everyone (including myself)
... except for me ...
Quoted 3 lines
is apparently strongly against this hunk I removed it when I cherry-picked this series from Pierre into my tree. The series will be in my pu tonight, but minus this hunk.
I can live without this hunk.
Ciao,
Dscho
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
In reply to René ScharfeHi,
Quoted 12 lines · Ren? Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
Quoted 2 lines
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
Why? It only means that you cannot say -W10mxabc instead of -W10m xabc.
Remember: this is a special case for OPT_INTEGER. Nothing to do with OPT_SIZE, which you'd probably implement as a callback.
Ciao,
Dscho
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
Quoted 16 lines · Johannes Schindelin
Hi,
Quoted 12 lines · Ren? Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
Quoted 7 lines
Quoted 2 lines
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
Why? It only means that you cannot say -W10mxabc instead of -W10m xabc.
Remember: this is a special case for
OPT_INTEGER. Nothing to do withOPT_SIZE, which you'd probably implement as a callback.
Yeah but the point is that you can't migrate an option currently being
an integer to an OPT_SIZE because of that (see my other mail). Meaning that once an argument is of type OPT_INTEGER you can't change it's type in the future _AT ALL_ without breaking backward compatibility badly. I'd say it's a rather sucky design.
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
Quoted 22 lines · Pierre Habouzit
Quoted 21 lines · Johannes Schindelin
Hi,
Quoted 12 lines · Ren? Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endifQuoted 2 lines
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
Why? It only means that you cannot say -W10mxabc instead of -W10m xabc.
Quoted 8 lines
Quoted 2 lines
Remember: this is a special case for
OPT_INTEGER. Nothing to do withOPT_SIZE, which you'd probably implement as a callback.Yeah but the point is that you can't migrate an option currently being
an integer to anOPT_SIZEbecause of that (see my other mail). Meaning that once an argument is of typeOPT_INTEGERyou can't change it's type in the future_ATALL_without breaking backward compatibility badly. I'd say it's a rather sucky design.
And what's the point of supporting so criptic arguments? It doesn't have to go that far.
Nicolas
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
In reply to Johannes SchindelinQuoted 15 lines · Johannes Schindelin
Hi,
Quoted 11 lines · Ren? Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
Quoted 7 lines
Quoted 2 lines
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
Why? It only means that you cannot say -W10mxabc instead of -W10m xabc.
Remember: this is a special case for
OPT_INTEGER. Nothing to do withOPT_SIZE, which you'd probably implement as a callback.
You mean I need to take a look at the actual patch to get a bit more context? ;-) Now that I did, I retract my comment.
Pierre, FYI: I didn't see your patches coming through the NNTP gateway of gmane.org, which is my way of reading this list. Its web interface doesn't show them, either, so it's probably not caused by my news reader.
René
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
In reply to René ScharfeQuoted 12 lines · René Scharfe
Quoted 10 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
Quoted 2 lines
I don't like it, it complicates number options with unit suffixes (e.g. --windows-memory of git-pack-objects).
This is my opinion too.
Nicolas
Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks.
In reply to Pierre HabouzitHi,
Quoted 11 lines · Pierre Habouzit
This bit is to allow to aggregate options with arguments together when the argument is numeric.
+#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif
Quoted 2 lines
I'm not a huge fan, but people may like it. Feel free to keep the chunk, drop it, or enable it to your liking.
FWIW I like it. It allows me to aggregate options such as -M30 with other short options.
Ciao,
Dscho
Re: [PATCH 04/25] Rework make_usage to print the usage message immediately
In reply to a message not in the archivePierre Habouzit, Tue, Oct 16, 2007 10:39:37 +0200:
Quoted 6 lines
From: Alex Riesen <[email protected]>
Signed-off-by Alex Riesen <[email protected]>--- parse-options.c | 48 ++++++++++++++++++++++-------------------------- 1 files changed, 22 insertions(+), 26 deletions(-)
Got it three times: you put [email protected] into To: and Cc:
Why stderr, BTW? For instance, the output from "git help" is on stdout. To be fair, I don't know why it is stdout there either.
Re: [PATCH 04/25] Rework make_usage to print the usage message immediately
Quoted 9 lines · Alex Riesen
Pierre Habouzit, Tue, Oct 16, 2007 10:39:37 +0200:
Quoted 6 lines
From: Alex Riesen <[email protected]>
Signed-off-by Alex Riesen <[email protected]>--- parse-options.c | 48 ++++++++++++++++++++++-------------------------- 1 files changed, 22 insertions(+), 26 deletions(-)Got it three times: you put [email protected] into To: and Cc:
sorry, but it's not the reason, I sent it three time, there was a
problem with Shawn O. Pierce, it wasn't escaped properly and VGER ate the mails because of that.
Quoted 2 lines
Why stderr, BTW? For instance, the output from "git help" is on stdout. To be fair, I don't know why it is stdout there either.
because it's what usage() does already ?
Quoted 1 line
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
Re: [PATCH 04/25] Rework make_usage to print the usage message immediately
Pierre Habouzit, Wed, Oct 17, 2007 00:15:55 +0200:
Quoted 3 lines
Quoted 2 lines
Why stderr, BTW? For instance, the output from "git help" is on stdout. To be fair, I don't know why it is stdout there either.
because it's what
usage()does already ?
fair enough.
Quoted 5 lines · Pierre Habouzit
The branch is available from
git://git.madism.org/git.gitin the topic
branch ph/parseopt. I just rebased it onto the last "next" spearce produced.Make
builtin-pack-objects.cuseparse_options.
ERRR DON'T TAKE 25/25, it's WIP and is broken atm, format-patch again
hasn't DWIM. It is not pushed to git://git.madism.org/git.git btw.
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
Quoted 9 lines · Pierre Habouzit
Quoted 5 lines · Pierre Habouzit
The branch is available from
git://git.madism.org/git.gitin the topic
branch ph/parseopt. I just rebased it onto the last "next" spearce produced.Make
builtin-pack-objects.cuseparse_options.ERRR DON'T TAKE 25/25, it's WIP and is broken atm, format-patch again
hasn't DWIM. It is not pushed togit://git.madism.org/git.gitbtw.
okay I'm wrong, sorry for the alarm, I just generated the --stat and shortlog too broadly, but 25/25 is definitely OK.
Proper stats for part2 are:
Jonas Fonseca (1):
Update manpages to reflect new short and long option aliases
Kristian Høgsberg (1):
Port builtin-add.c to use the new option parser.
Pierre Habouzit (15):
Make builtin-rm.c use parse_options.
Make builtin-mv.c use parse-options
Make builtin-branch.c use parse_options.
Make builtin-describe.c use parse_options
Make builtin-fetch.c use parse_options.
Make builtin-revert.c use parse_options.
Make builtin-update-ref.c use parse_options
Make builtin-symbolic-ref.c use parse_options.
Make builtin-http-fetch.c use parse_options.
Make builtin-for-each-ref.c use parse-opts.
Make builtin-fsck.c use parse_options.
Make builtin-count-objects.c use parse_options.
Make builtin-name-rev.c use parse_options.
Make builtin-pack-refs.c use parse_options.
Make builtin-show-ref.c use parse_options [small backward incompatibility].
Documentation/git-add.txt | 4 +-
Documentation/git-branch.txt | 2 +-
Documentation/git-mv.txt | 2 +-
Documentation/git-rm.txt | 4 +-
Documentation/git-show-ref.txt | 4 +-
Documentation/git-symbolic-ref.txt | 2 +-
builtin-add.c | 70 ++++++-----------
builtin-branch.c | 147 +++++++++++++-----------------------
builtin-count-objects.c | 32 ++++----
builtin-describe.c | 70 +++++++----------
builtin-fetch.c | 146 ++++++++++++------------------------
builtin-for-each-ref.c | 138 +++++++++++++++-------------------
builtin-fsck.c | 80 ++++++-------------
builtin-http-fetch.c | 65 +++++++---------
builtin-mv.c | 84 +++++++++------------
builtin-name-rev.c | 64 ++++++----------
builtin-pack-refs.c | 47 +++++-------
builtin-revert.c | 67 +++++++---------
builtin-rm.c | 54 ++++++--------
builtin-show-ref.c | 127 +++++++++++--------------------
builtin-symbolic-ref.c | 52 +++++--------
builtin-update-ref.c | 65 ++++++----------
22 files changed, 515 insertions(+), 811 deletions(-)
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 01/25] Add a simple option parser.
Quoted 2 lines · Pierre Habouzit
The option parser takes argc, argv, an array of struct option and a usage string. ...
OK, I've chewed down some version of this series. ;-)
To be more specific I fetched ph/parseopt (11b83dc4da) from your tree at git://git.madism.org/git.git and split it apart somewhat. All of the patches were rebased onto my most recent master but I also yanked the two that impacted the builtin-fetch series out and layered them over a merge of db/fetch-pack and my version of your ph/parseopt series.
Why? Well I want to keep our options open about which series graduates to master first. Although builtin-fetch has been cooking for a while there's been a number of issues with that code. There exists a (perhaps small) chance that ph/parseopt will be ready before db/fetch-pack.
Currently ph/parseopt is in pu. Tomorrow I'll look at the usage strings in more depth and see if any improvements can be easily made. I already made one suggested by Dscho in builtin-add.
Signature · 1 line
Shawn.
Re: [PATCH 01/25] Add a simple option parser.
Quoted 13 lines · Shawn O. Pearce
Quoted 2 lines · Pierre Habouzit
The option parser takes argc, argv, an array of struct option and a usage string. ...
OK, I've chewed down some version of this series. ;-)
To be more specific I fetched ph/parseopt (
11b83dc4da) from your tree atgit://git.madism.org/git.gitand split it apart somewhat. All of the patches were rebased onto my most recent master but I also yanked the two that impacted the builtin-fetch series out and layered them over a merge of db/fetch-pack and my version of your ph/parseopt series.
Quoted 5 lines
Why? Well I want to keep our options open about which series graduates to master first. Although builtin-fetch has been cooking for a while there's been a number of issues with that code. There exists a (perhaps small) chance that ph/parseopt will be ready before db/fetch-pack.
Yes, this makes sense, otoh the migration of the fetch commands are
really independant so you can put those appart, even if I end up needing to rewrite them it's not an issue.
Quoted 3 lines
Currently ph/parseopt is in pu. Tomorrow I'll look at the usage strings in more depth and see if any improvements can be easily made. I already made one suggested by Dscho in builtin-add.
wonderful, thanks.
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org