author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sun, 1 Jul 2007 21:51:58 +0000 (22:51 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 2 Jul 2007 08:33:44 +0000 (01:33 -0700) | ||
commit | a2f8028d3d661b314d5a784764f2f5f9e4c2dde0 | |
tree | 670a4fe52001e3c03cc236facf5f2cc461f409c7 | tree | snapshot |
parent | 7627943a1bb0cda6f37b66381a62facf9e200285 | commit | diff |
Make '!' aliases more useful
When an alias starts with an exclamation mark, the rest is interpreted
as a shell command. However, all arguments passed to git used to be
ignored.
Now you can have an alias like
$ git config alias.e '!echo'
and
$ git e Hello World
does what you expect it to do.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When an alias starts with an exclamation mark, the rest is interpreted
as a shell command. However, all arguments passed to git used to be
ignored.
Now you can have an alias like
$ git config alias.e '!echo'
and
$ git e Hello World
does what you expect it to do.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c | diff | blob | history |