Re: [PATCH 3/4] option-strings: use OPT_PATH

2015-02-23 Thread Jeff King
On Mon, Feb 23, 2015 at 01:07:13PM -0800, Junio C Hamano wrote: > >> - OPT_STRING(0, "template", &option_template, N_("template-directory"), > >> + OPT_PATH(0, "template", &option_template, N_("template-directory"), > >> N_("directory from which templates will be used")), > >>O

Re: [PATCH 3/4] option-strings: use OPT_PATH

2015-02-23 Thread Junio C Hamano
Jeff King writes: > On Mon, Feb 23, 2015 at 05:17:45PM +0100, Michael J Gruber wrote: > >> diff --git a/builtin/clone.c b/builtin/clone.c >> index a9af3f2..15941c5 100644 >> --- a/builtin/clone.c >> +++ b/builtin/clone.c >> @@ -80,7 +80,7 @@ static struct option builtin_clone_options[] = { >>

Re: [PATCH 3/4] option-strings: use OPT_PATH

2015-02-23 Thread Jeff King
On Mon, Feb 23, 2015 at 05:17:45PM +0100, Michael J Gruber wrote: > diff --git a/builtin/clone.c b/builtin/clone.c > index a9af3f2..15941c5 100644 > --- a/builtin/clone.c > +++ b/builtin/clone.c > @@ -80,7 +80,7 @@ static struct option builtin_clone_options[] = { > N_("initialize

[PATCH 3/4] option-strings: use OPT_PATH

2015-02-23 Thread Michael J Gruber
Some commands use OPT_STRING to specify a path type argument. Let them use OPT_PATH so that they can profit from path prefixing. Signed-off-by: Michael J Gruber --- builtin/clone.c | 4 ++-- builtin/init-db.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/clon