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

Re: [PATCH] add a 'pre-push' hook

From
Jeff King <peff@peff.net>
Date
Aug 19, 2008, 18:58 UTC
Message-ID
<20080819185804.GA17943@coredump.intra.peff.net>
In-Reply-To
<d411cc4a0808191155g188b0f10je5fd79afb92f36ef@mail.gmail.com>
On Tue, Aug 19, 2008 at 11:55:27AM -0700, Scott Chacon wrote:
Show 9 quoted lines
> This commit adds support for a 'pre-push' hook that can be called before
> a `git push` command.
> 
> It takes no arguments currently, but if the .git/hooks/pre-push script
> exists and is executable, it will be called before the 'git push' command
> and will stop the push process if it does not exit with a 0 status.
> 
> This hook can be overridden by passing in the --no-verify or -n option to
> git push.  Documentation and tests have been updated to reflect the change.

Would you care to describe what this is useful for (either in documentation, to help potential users, or at least in the commit log, so we know there is a need that is not otherwise fulfilled)?

-Peff
Previous: Scott ChaconNext: Scott Chacon
Message 2 of 15 in “add a 'pre-push' hook”
  1. add a 'pre-push' hookScott Chacon, Aug 19, 2008
  2. Jeff KingAug 19, 2008
  3. Scott ChaconAug 19, 2008
  4. Jeff KingAug 19, 2008
  5. Shawn O. PearceAug 19, 2008
  6. Scott ChaconAug 19, 2008
  7. しらいしななこAug 19, 2008
  8. Scott ChaconAug 19, 2008
  9. Junio C HamanoAug 19, 2008
  10. Sam VilainAug 19, 2008
  11. Jeff KingAug 20, 2008
  12. Junio C HamanoAug 19, 2008
  13. Scott ChaconAug 19, 2008
  14. Junio C HamanoAug 19, 2008
  15. Shawn O. PearceAug 19, 2008

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.