mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-27 18:11:12 +00:00
Deployed a7bff04 to prerelease with MkDocs 1.6.0 and mike 2.1.1
This commit is contained in:
parent
fbf7ec6958
commit
18cb92a35d
@ -1649,9 +1649,12 @@ It will <em>not</em> match <code>foobar</code> or <code>bar/foo</code>.</p>
|
||||
<h2 id="aliases">Aliases<a class="headerlink" href="#aliases" title="Permanent link">¶</a></h2>
|
||||
<p>New symbols and functions can be defined in the config file, by using any
|
||||
combination of the predefined symbols/functions and other aliases.</p>
|
||||
<p>Alias functions can be overloaded by the number of parameters. However, builtin
|
||||
function will be shadowed by name, and can't co-exist with aliases.</p>
|
||||
<p>For example:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="k">[revset-aliases]</span>
|
||||
<span class="s1">'HEAD'</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'@-'</span>
|
||||
<span class="s1">'user()'</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'</span><span class="err">user("me@example.org")</span>
|
||||
<span class="s1">'user(x)'</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'author(x) | committer(x)'</span>
|
||||
</code></pre></div>
|
||||
<h3 id="built-in-aliases">Built-in Aliases<a class="headerlink" href="#built-in-aliases" title="Permanent link">¶</a></h3>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1981,6 +1981,8 @@ can be seen in the <code>cli/src/config/templates.toml</code> file in jj's sourc
|
||||
|
||||
<p>New keywords and functions can be defined as aliases, by using any
|
||||
combination of the predefined keywords/functions and other aliases.</p>
|
||||
<p>Alias functions can be overloaded by the number of parameters. However, builtin
|
||||
function will be shadowed by name, and can't co-exist with aliases.</p>
|
||||
<p>For example:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="k">[template-aliases]</span>
|
||||
<span class="s1">'commit_change_ids'</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'''</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user