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 <my-other-arguments> In a perfect world, I would be able to do it in any language it pleases me and I would be able to add my custom made extensions to any development environment fairly easily.
Let's say, something like the support of plugins in Vim?
GIT Extensions is a distributed version control system enabling a user to robustly manage a collection of source files and the changes made in them. The changes made are shown in the History of changes. Users can make changes by accessing a Central repository called remote repository and committing the changes to it.
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-extension There's nothing special about "extending git". Just build a program as you would normally, and make sure the name starts with git-.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With