Reputation: 43
Do you have any ideas how can I fire a script while I'm making tagging?
I know that currently there is no a separate git tag hook but it should be some way how to do that. For instance, try to use pre-push
hook while you push your tags or something similar. Did anyone do such things?
Upvotes: 2
Views: 1063
Reputation: 1329942
Since there is no hook, you would need to make an alias, or your own git-tag
script, in order to wrap the git tag
command.
That way, you can tag and execute other commands.
As mentioned in your next question, you could use a pre-push
hook to make that analysis, but by then, there could be a bit late (many commits could have been created, and many tags set before the user finally pushes)
Upvotes: 2