|
NAMEstagit —
static git page generator
SYNOPSIS
DESCRIPTIONstagit writes HTML pages for the repository
repodir to the current directory.
The options are as follows:
The options The following files will be written:
For each entry in HEAD a file will be written in the format: file/filepath.html. This file will contain the textual data of the file prefixed by line numbers. The file will have the string "Binary file" if the data is considered to be non-textual. For each commit a file will be written in the format: commit/commitid.html. This file will contain the diffstat and diff of the commit. It will write the string "Binary files differ" if the data is considered to be non-textual. Too large diffs will be suppressed and a string "Diff is too large, output suppressed" will be written. When a commit HTML file exists it won't be overwritten again, note
that if you've changed The basename of the directory is used as the repository name. The suffix ".git" is removed from the basename, this suffix is commonly used for "bare" repos. The content of the follow files specifies the metadata for each repository:
When a README or LICENSE file exists in HEAD or a .gitmodules submodules file exists in HEAD a direct link in the menu is made. For changing the style of the page you can use the following files:
EXIT STATUSThestagit utility exits 0 on success,
and >0 if an error occurs.
EXAMPLESmkdir -p htmlroot/htmlrepo1 && cd htmlroot/htmlrepo1 stagit path/to/gitrepo1 # repeat for other repositories. To update the HTML files when the repository is changed a git post-receive hook can be used, see the file example_post-receive.sh for an example. SEE ALSOstagit-index(1)AUTHORSHiltjo Posthuma <hiltjo@codemadness.org>
Visit the GSP FreeBSD Man Page Interface. |