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/