Skip to content

githooks.txt improvements + core.hooksDirectory

Ævar Arnfjörð Bjarmason git 4 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyIn review
  2. v54 patches 1 replySuperseded
  3. v44 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v33 patches9 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4githooks.txt: Improve the intro sectionDocumentation/git-init.txt Documentation/githooks.txt+25 -130 replies
2/4githooks.txt: Amend dangerous advice about 'update' hook ACLDocumentation/githooks.txt+5 -30 replies
3/4githooks.txt: Minor improvements to the grammar & phrasingDocumentation/githooks.txt+16 -160 replies
4/4hooks: Add ability to specify where the hook directory isDocumentation/config.txt Documentation/githooks.txt cache.h +4 more+71 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/4] githooks.txt improvements + core.hooksDirectory

Changed to reflect Junio's latest comment, diff between the whole series and the last one here at the end (made with -U0).

Ævar Arnfjörð Bjarmason (4):
githooks.txt: Improve the intro section githooks.txt: Amend dangerous advice about 'update' hook ACL githooks.txt: Minor improvements to the grammar & phrasing
hooks: Add ability to specify where the hook directory is

 Documentation/config.txt     | 17 +++++++++++
 Documentation/git-init.txt   |  7 ++++-
 Documentation/githooks.txt   | 73 ++++++++++++++++++++++++++------------------
 cache.h                      |  1 +
 config.c                     |  3 ++
 environment.c                |  1 +
 run-command.c                |  5 ++-
 t/t1350-config-hooks-path.sh | 37 ++++++++++++++++++++++
 8 files changed, 112 insertions(+), 32 deletions(-)
 create mode 100755 t/t1350-config-hooks-path.sh
Documentation/config.txt +1 -1
index 9a74acd..6cc069f 100644
@@ -635 +635 @@ per-repository basis, or as a more flexible and centralized
-alterantive to having an `init.templateDir` where you've changed
+alternative to having an `init.templateDir` where you've changed
Documentation/githooks.txt +3 -5
index 6f562cd..d82e912 100644
@@ -24,5 +24,3 @@ linkgit:git-config[1]).
-Hooks don't need to worry about the user's current working
-directory. Before Git invokes a hook it changes its working
-directory. The working directory will be the root of the working tree
-in a non-bare repository, or in the $GIT_DIR directory in a bare
-repository.
+Before Git invokes a hook, it changes its working directory to either
+the root of the working tree in a non-bare repository, or to the
+$GIT_DIR in a bare repository.
t/t1350-config-hooks-path.sh +3 -3
index 6e4586a..5e3fb3a 100755
@@ -11 +11 @@ test_expect_success 'set up a pre-commit hook in core.hooksPath' '
-EOF
+	EOF
@@ -14 +14 @@ EOF
-EOF
+	EOF
@@ -33 +33 @@ test_expect_success 'Check that various forms of specifying core.hooksPath work'
-EOF
+	EOF
Signature · 1 line
2.1.3