Mercurial > hg-stable
changeset 14277:4d891ed9a6af
hgrc.5: document positional arguments in aliases
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 09 May 2011 11:01:45 +0200 |
parents | 7f16ff9e45b4 |
children | 59c820a6ca79 |
files | doc/hgrc.5.txt |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/hgrc.5.txt Mon May 09 10:52:08 2011 +0200 +++ b/doc/hgrc.5.txt Mon May 09 11:01:45 2011 +0200 @@ -181,7 +181,11 @@ """"""""" Defines command aliases. Aliases allow you to define your own commands in terms of other -commands (or aliases), optionally including arguments. +commands (or aliases), optionally including arguments. Positional +arguments in the form of ``$1``, ``$2``, etc in the alias definition +are expanded by Mercurial before execution. Positional arguments not +already used by ``$N`` in the definition are put at the end of the +command to be executed. Alias definitions consist of lines of the form::