From 8d1d98a3aa3448b9d983e4bd64243a938b96e8ab Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 13 Mar 2024 17:51:41 +0100 Subject: 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 --- doc/guix.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') 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. -- cgit v1.2.3