Patchwork D9265: help: document the new [command-templates] config section

login
register
mail settings
Submitter phabricator
Date Oct. 30, 2020, 8:27 p.m.
Message ID <differential-rev-PHID-DREV-ftw7yzvobjjhsgesy22r-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47536/
State Superseded
Headers show

Comments

phabricator - Oct. 30, 2020, 8:27 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9265

AFFECTED FILES
  mercurial/helptext/config.txt

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/helptext/config.txt b/mercurial/helptext/config.txt
--- a/mercurial/helptext/config.txt
+++ b/mercurial/helptext/config.txt
@@ -2568,6 +2568,14 @@ 
 
     Can be overridden per-merge-tool, see the ``[merge-tools]`` section.
 
+``oneline-summary``
+    A template used by `hg rebase` and other commands for showing a one-line
+    summary of a commit. If the template configured here is longer than one
+    line, then only the first line is used.
+
+    The template can be overridden per command by defining a template in
+    `oneline-summary.<command>`, where `<command>` can be e.g. "rebase".
+
 ``pre-merge-tool-output``
     A template that is printed before executing an external merge tool. This can
     be used to print out additional context that might be useful to have during