]> git.armaanb.net Git - stagit.git/blob - README
README: minor update
[stagit.git] / README
1 stagit
2 ======
3
4 static git page generator
5
6
7 Usage
8 -----
9
10 Make files per repository:
11
12         $ mkdir -p htmldir && cd htmldir
13         $ stagit path-to-repo
14
15 Make index file for repositories:
16
17         $ stagit-index repodir1 repodir2 repodir3 > index.html
18
19
20 Install
21 -------
22
23 $ make
24 # make install
25
26
27 Dependencies
28 ------------
29
30 - libgit2 (v0.22+).
31 - libc (tested with OpenBSD, FreeBSD, glibc and musl).
32 - C compiler (C99).
33 - make
34
35
36 Documentation
37 -------------
38
39 See man pages: stagit(1) and stagit-index(1).
40
41
42 Features
43 --------
44
45 - Log of all commits from HEAD.
46 - Log and diffstat per commit.
47 - Show file tree with linkable line numbers.
48 - Show references: local branches and tags.
49 - Detect README and LICENSE file from HEAD and link it as a webpage.
50 - Detect submodules (.gitmodules file) from HEAD and link it as a webpage.
51 - Atom feed log (atom.xml).
52 - Make index page for multiple repositories with stagit-index.
53 - After generating the pages (relatively slow) serving the files is very fast,
54   simple and requires little resources (because the content is static), only
55   a HTTP file server is required.
56
57
58 Cons
59 ----
60
61 - Not suitable for large repositories (2000+ commits), because diffstats are
62   an expensive operation.
63 - Not suitable for repositories with many branches, a quite linear history is
64   assumed (from HEAD).
65 - Relatively slow to run the first time (about 3 seconds for sbase,
66   1500+ commits), incremental updates after it are faster.
67 - Does not support some of the dynamic features cgit has, like:
68   - snapshot tarballs.
69   - file tree per commit.
70   - history log of branches diverged from HEAD.
71   - stats (git shortlog -s).
72
73   this is by design, just use git locally.