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

[PATCH 0/2] Template cleanups

From
Ben Walton <bwalton@artsci.utoronto.ca>
Date
Mar 20, 2010, 14:48 UTC
Message-ID
<1269096489-12750-1-git-send-email-bwalton@artsci.utoronto.ca>
Hi All,

I noticed that the template sample hooks were a) using shell conventions that may not work under /bin/sh on all platforms and b) using the old git-foo calling conventions in some, but not all, cases. The following two patches rectify this.

The build system will now substitute SHELL_PATH and PERL_PATH into files under templates/ so that the templates use the same tools as the rest of git.

Ben Walton (2):
  Make templates honour SHELL_PATH and PERL_PATH
  Modernize git calling conventions in hook templates
 Makefile                                   |    2 +-
 templates/Makefile                         |   17 +++++++++++++++--
 templates/hooks--commit-msg.sample         |    2 +-
 templates/hooks--post-update.sample        |    2 +-
 templates/hooks--pre-commit.sample         |    4 ++--
 templates/hooks--pre-rebase.sample         |   20 ++++++++++----------
 templates/hooks--prepare-commit-msg.sample |    6 +++---
 templates/hooks--update.sample             |    4 ++--
 templates/info--exclude                    |    2 +-
 9 files changed, 36 insertions(+), 23 deletions(-)
Next: Ben Walton
Message 1 of 3 in “Template cleanups”
  1. 0/2 Template cleanupsBen Walton, Mar 20, 2010
  2. 1/2 Make templates honour SHELL_PATH and PERL_PATHBen Walton, Mar 20, 2010
  3. 2/2 Modernize git calling conventions in hook templatesBen Walton, Mar 20, 2010

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.