git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-config: aliases with parameter expansion ($1 and such)
@ 2008-03-23 13:28 Dirk Süsserott
  2008-03-23 13:45 ` Jay Soffian
  0 siblings, 1 reply; 13+ messages in thread
From: Dirk Süsserott @ 2008-03-23 13:28 UTC (permalink / raw)
  To: Git Mailing List

Hi, I've a question concerning git config and the alias things.
I'd like to create an alias 'atag' that creates an annotated
tag with the message being the same as the tag. Usually I create
annotated tags like this:

$ git tag -a -m "mytag" mytag

(BTW: It's not documented, but I have the impression that
the '-a' switch is implicitely added when the '-m' switch
is present. Is that true?)

I'd like to have an alias like this:

[alias]
    atag = tag -a -m "$1"

So that I can simply call

$ git atag mytag

Is it possible to pass parameters to the alias definition?
With the definition above I got a tag with message "$1".

Thanks, Dirk

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-03-24 19:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-23 13:28 git-config: aliases with parameter expansion ($1 and such) Dirk Süsserott
2008-03-23 13:45 ` Jay Soffian
2008-03-23 14:04   ` Dirk Süsserott
2008-03-23 14:19     ` Johannes Schindelin
2008-03-23 14:31       ` Dirk Süsserott
2008-03-23 19:38       ` Jeff King
2008-03-23 19:38     ` Jeff King
2008-03-23 19:45       ` Jeff King
2008-03-24  1:54         ` Jay Soffian
2008-03-24  2:47           ` Junio C Hamano
2008-03-24 13:15             ` Dirk Süsserott
2008-03-24 19:29               ` Jeff King
2008-03-24 14:54             ` Jay Soffian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).