summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-03-13 17:51:41 +0100
committerLudovic Courtès <ludo@gnu.org>2024-05-01 17:26:19 +0200
commit8d1d98a3aa3448b9d983e4bd64243a938b96e8ab (patch)
treeb9f677f4b88872700c87c45e3c453bf46dce83dd /doc
parent1a5041a502ee26c04d264983232b2aaa6a5e27d8 (diff)
git authenticate: Install pre-push and post-checkout hooks.
* guix/scripts/git/authenticate.scm (install-hooks): New procedure. (guix-git-authenticate): Use it. * doc/guix.texi (Invoking guix git authenticate): Document it. Change-Id: I4464a33193186e85b476a12740e54412bd58429c
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 743ac09b67..749d689ac1 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -7362,6 +7362,11 @@ branches, you can extend @file{.git/config} along these lines:
keyring = keyring
@end smallexample
+The first run also attempts to install pre-push and post-merge hooks,
+such that @command{guix git authenticate} is invoked as soon as you run
+@command{git push}, @command{git pull}, and related commands; it does
+not overwrite preexisting hooks though.
+
The command-line options described below allow you to fine-tune the
process.