Re: [PATCH] Cross-reference the manpages for git-name-rev and git-describe
Junio C Hamano <junkio@cox.net> wrote:
Show 6 quoted lines
> "Shawn O. Pearce" <spearce@spearce.org> writes:
>
> > Teach git-describe how to run name-rev
>
> Sorry for a belated question, but is there a reason not to do
> this (on top)?
Nope, I just completely missed it. Please make it so! ;-)
Show 15 quoted lines
> diff --git a/builtin-describe.c b/builtin-describe.c
> index efbd43f..2a32af6 100644
> --- a/builtin-describe.c
> +++ b/builtin-describe.c
> @@ -283,8 +283,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
> nr[2] = "--tags";
> memcpy(nr + 3, argv + i, (argc - i) * sizeof(char*));
> nr[3 + argc - i] = NULL;
> - execv_git_cmd(nr);
> - die("unable to start %s", nr[0]);
> + return cmd_name_rev(3 + argc - i, nr, prefix);
> }
>
> if (argc <= i)
> --
Shawn.