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
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 6, 2011, 20:05 UTC
Message-ID
<20110106200518.GA14945@burratino>
In-Reply-To
<1294343649-6272-1-git-send-email-kusmabite@gmail.com>
Erik Faye-Lund wrote:
> --- a/git.c
> +++ b/git.c
> @@ -177,22 +177,22 @@ static int handle_alias(int *argcp, const char ***argv)
[...]
> +			alias_argv = xmalloc(sizeof(char *) * argc + 1);
Missed a spot?  (missing parens)

Thanks for this. It also should provide a minor speedup in the case of commands with no shell metacharacters.

Previous: Erik Faye-LundNext: Erik Faye-Lund
Message 2 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.