]> git.ipfire.org Git - thirdparty/asterisk.git/commit
docs: Add version information to AGI command XML elements.
authorGeorge Joseph <gjoseph@sangoma.com>
Fri, 24 Jan 2025 20:55:47 +0000 (13:55 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 29 Jan 2025 17:07:02 +0000 (17:07 +0000)
commit8dd5c2349417c0b463e87082c254eefe10e2c4fe
tree490c738d08d12ea9798290274718dc65a0cf7c2d
parent85538b6d715097de9809c4fe562b832cbf4aa035
docs: Add version information to AGI command XML elements.

This process was a bit different than the others because everything
is in the same file, there's an array that contains the command
names and their handler functions, and the last command was created
over 15 years ago.

* Dump a `git blame` of res/res_agi.c from BEFORE the handle_* prototypes
  were changed.
* Create a command <> handler function xref by parsing the the agi_command
  array.
* For each entry, grep the function definition line "static int handle_*"
  from the git blame output and capture the commit.  This will be the
  commit the command was created in.
* Do a `git tag --contains <commit> | sort -V | head -1` to get the
  tag the function was created in.
* Add a single since/version element to the command XML.  Multiple versions
  aren't supported here because the branching and tagging scheme changed
  several times in the 2000's.
res/res_agi.c