git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add a post-tag hook

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 17, 2009, 22:19 UTC
Message-ID
<20090417221944.GS23604@spearce.org>
In-Reply-To
<cd3664ac0904171515u1e2fce41ubd34f60ec43fcafd@mail.gmail.com>
Ammon Riley <ammon.riley@gmail.com> 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.
...
Show 8 quoted lines
> +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.
Previous: Ammon RileyNext: Ammon Riley
Message 2 of 4 in “Add a post-tag hook”
  1. Add a post-tag hookAmmon Riley, Apr 17, 2009
  2. Shawn O. PearceApr 17, 2009
  3. Ammon RileyApr 17, 2009
  4. Pat NotzApr 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.