diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-24 09:19:40 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-24 09:19:40 +0200 |
| commit | f3b68649692d5f6b68c00d8401e551dd4e7fa884 (patch) | |
| tree | 24cda0843bc9e8d82da0edc48db5bcebc006778e /docs/magit-section.org | |
| parent | 550d99d86d8a5d3efe8bde7727db8d42d90dfbd5 (diff) | |
magit-insert-heading: Add optional CHILD-COUNT argument
Diffstat (limited to 'docs/magit-section.org')
| -rw-r--r-- | docs/magit-section.org | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/magit-section.org b/docs/magit-section.org index f0477f5..df5aa44 100644 --- a/docs/magit-section.org +++ b/docs/magit-section.org @@ -86,7 +86,7 @@ source for suitable examples before asking me for help. Thanks! a section by washing Git's output and Git didn't actually output anything this time around. -- Function: magit-insert-heading &rest args :: +- Function: magit-insert-heading [child-count] &rest args :: Insert the heading for the section currently being inserted. @@ -115,6 +115,13 @@ source for suitable examples before asking me for help. Thanks! getting it right. The only exception is that this function does insert a newline character if necessary. + If provided, optional CHILD-COUNT must evaluate to an integer or + boolean. If t, then the count is determined once the children have been + inserted, using ~magit-insert-child-count~ (which see). For historic + reasons, if the heading ends with ":", the count is substituted for + that, at this time as well. If ~magit-section-show-child-count~ is nil, + no counts are inserted + - Macro: magit-insert-section-body &rest body :: Use BODY to insert the section body, once the section is expanded. |
