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

Re: git 'new' alias

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 1, 2011, 19:40 UTC
Message-ID
<vpqei00m4pf.fsf@bauges.imag.fr>
In-Reply-To
<CACnwZYfo2E0SFfFrYzUktAZYwqgyX_J4KgFQD5kqXToGmip3Lg@mail.gmail.com>
Thiago Farina <tfransosi@gmail.com> writes:
Show 11 quoted lines
> Hi,
>
> Could we change the 'new' alias in the wiki page,
>
> from:
> new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
>
> to:
> new = !git log $1@{1}..$1@{0} "$@"
>
> ?

Go on. I think I'm the one who added it, and I didn't know $1 and $@ would work without "sh -c", but I guess my version results in calling stg like sh -c "sh -c 'git log ...'" which is a bit overkill ;-).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Thiago FarinaNext: Jeff King
Message 2 of 5 in “git 'new' alias”
  1. Thiago FarinaSep 1, 2011
  2. Matthieu MoySep 1, 2011
  3. Jeff KingSep 1, 2011
  4. Matthieu MoySep 5, 2011
  5. Jeff KingSep 5, 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.