I was wondering if there was an easy way to extend Git commands.
So I could create commands like:
git my-custom-made-extension --my-options
As you can see in the source code in execv_dashed_external, If you make the command git-my-custom-made-extension, then git will alias:
git my-custom-made-extension ... → git-my-custom-made-extension ...git help my-custom-made-extension → man git-my-custom-made-extensionThere's nothing special about "extending git". Just build a program as you would normally, and make sure the name starts with git-.