forked from mirrors/jj
Deployed e54e83b
to prerelease with MkDocs 1.5.3 and mike 2.0.0
This commit is contained in:
parent
5eb687e929
commit
3ebdb4d350
3 changed files with 10 additions and 1 deletions
|
@ -2484,6 +2484,15 @@ through a pager you must do it using a subshell as, unlike <code>git</code> or <
|
|||
command will be executed directly. For example:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="n">ui</span><span class="p">.</span><span class="n">pager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span><span class="s2">"sh"</span><span class="p">,</span><span class="w"> </span><span class="s2">"-c"</span><span class="p">,</span><span class="w"> </span><span class="s2">"diff-so-fancy | less -RFX"</span><span class="p">]</span>
|
||||
</code></pre></div>
|
||||
<p>Some formatters (like <a href="https://github.com/dandavison/delta"><code>delta</code></a>) require
|
||||
git style diffs for formatting. You can configure this style of
|
||||
diff as the default with the <code>ui.diff</code> setting. For example:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="k">[ui]</span>
|
||||
<span class="n">pager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"delta"</span>
|
||||
|
||||
<span class="k">[ui.diff]</span>
|
||||
<span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"git"</span>
|
||||
</code></pre></div>
|
||||
<h2 id="aliases">Aliases<a class="headerlink" href="#aliases" title="Permanent link">¶</a></h2>
|
||||
<p>You can define aliases for commands, including their arguments. For example:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="c1"># `jj l` shows commits on the working-copy commit's (anonymous) branch</span>
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in a new issue