Manual Page Search Parameters

STAGIT-HOOK(1) General Commands Manual STAGIT-HOOK(1)

stagit-hookGit 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.

/etc/stagit-hook
stagit-hook(5) configuration file.

The stagit-hook utility exits 0 on success, and >0 if an error occurs.

Manually initialize repository and index pages for example:

$ stagit-hook example

Setup 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'

stagit(1), stagit-index(1), githooks(5), stagit-hook(5)

Jacob R. Edwards <jacob@jacobedwards.org>

October 19, 2025 jacob