Thread (3 messages) flat view 3 messages, 1 author, 2016-06-15
DORMANTno replies

[PATCH 0/2] Template cleanups

From: Ben Walton <hidden>
Date: 2016-06-15 22:48:28

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(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help