Re: [PATCH] Add a post-tag hook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ammon Riley <ammon.riley@xxxxxxxxx> wrote:
> Add a post-tag hook, to allow notifications when a tag is created.
> The hook is given the name of the newly created tag.

Why would you want to send notifications upon creating a tag in
your local repository?

Usually a tag is only interesting when it has been sent to a shared
public repository, which is by git push, and thus is caught by a
git receive-pack hook like post-update or post-receive.

> +HOOKS
> +-----
> +This command can run the `post-tag` hook. See linkgit:githooks[5]
> +for more information.
...
> +post-tag
> +--------
> +
> +This hook is invoked by 'git-tag'.  It takes one parameter, the name
> +of the tag, and is invoked after a tag is made.
> +
> +This hook is meant primarily for notification, and cannot affect
> +the outcome of 'git-tag'.

-- 
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]