| STAGIT-HOOK(1) | General Commands Manual | STAGIT-HOOK(1) |
stagit-hook — Git
hook to automatically run stagit
stagit-hook |
[repo ...] |
The stagit-hook utility generates
repository pages with stagit(1) and
repository index pages with
stagit-index(1). When used without
arguments, stagit-hook determines the repository
pages to generate with the GIT_DIR environment
variable. If GIT_DIR isn't set, it only generates an
index page.
The stagit-hook utility exits 0 on
success, and >0 if an error occurs.
Manually initialize repository and index pages for example:
$ stagit-hook exampleSetup stagit-hook for all repositories with the git-daemon-export-ok file:
$ mkdir -p ~/.git/hooks $ echo '#!/bin/sh test -e "$GIT_DIR"/git-daemon-export-ok && exec stagit-hook' > ~/.git/hooks/post-update $ chmod +x ~/.git/hooks/post-update $ git config --global core.hooksPath ~/.git/hooks $ doas sh -c 'echo hasfile git-daemon-export-ok > /etc/stagit-hook'
Jacob R. Edwards <jacob@jacobedwards.org>
| October 19, 2025 | jacob |