docs: Add version information to application and function XML elements

* Do a git blame on the embedded XML application or function element.

* From the commit hash, grab the summary line.

* Do a git log --grep <summary> to find the cherry-pick commits in all
  branches that match.

* Do a git patch-id to ensure the commits are all related and didn't get
  a false match on the summary.

* Do a git tag --contains <commit> to find the tags that contain each
  commit.

* Weed out all tags not ..0.

* Sort and discard any .0.0 and following tags where the commit
  appeared in an earlier branch.

* The result is a single tag for each branch where the application or function
  was defined.

The applications and functions defined in the following files were done by
hand because the XML was extracted from the C source file relatively recently.
* channels/pjsip/dialplan_functions_doc.xml
* main/logger_doc.xml
* main/manager_doc.xml
* res/res_geolocation/geoloc_doc.xml
* res/res_stir_shaken/stir_shaken_doc.xml
This commit is contained in:
George Joseph
2025-01-23 09:27:32 -07:00
committed by asterisk-org-access-app[bot]
parent 77d5550d14
commit 198b01c536
166 changed files with 385 additions and 27 deletions

View File

@@ -38,6 +38,7 @@
/*** DOCUMENTATION
<function name="SORT" language="en_US">
<since><version>1.6.2.0</version></since>
<synopsis>
Sorts a list of key/vals into a list of keys, based upon the vals.
</synopsis>
@@ -58,6 +59,7 @@
</description>
</function>
<function name="CUT" language="en_US">
<since><version>1.6.2.0</version></since>
<synopsis>
Slices and dices strings, based upon a named delimiter.
</synopsis>