git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] alias: use run_command api to execute aliases

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Jan 6, 2011, 20:14 UTC
Message-ID
<AANLkTi=aPjtfFVKX6XqHyZYVaT07ExnWVF140JJ==U+m@mail.gmail.com>
In-Reply-To
<20110106200518.GA14945@burratino>
On Jan 6, 2011 9:05 PM, "Jonathan Nieder" <jrnieder@gmail.com> wrote:
Show 6 quoted lines
>
> Erik Faye-Lund wrote:
>
> > --- a/git.c
> > +++ b/git.c
> > @@ -177,22 +177,22 @@ static int handle_alias(int *argcp, const char
***argv)
Show 5 quoted lines
> [...]
> > +                     alias_argv = xmalloc(sizeof(char *) * argc + 1);
>
> Missed a spot?  (missing parens)
>

Blergh... I guess that teaches me a lesson about sending out patches in a hurry. New version a bit later, then ;)

> Thanks for this.  It also should provide a minor speedup in the case
> of commands with no shell metacharacters.
Nice. Not intentional, but hey :)
Previous: Jonathan NiederNext: Johannes Sixt
Message 3 of 4 in “alias: use run_command api to execute aliases”
  1. alias: use run_command api to execute aliasesErik Faye-Lund, Jan 6, 2011
  2. Jonathan NiederJan 6, 2011
  3. Erik Faye-LundJan 6, 2011
  4. Johannes SixtJan 6, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.