]> git.armaanb.net Git - stagit.git/blobdiff - README
README: advertise text-browser improvements
[stagit.git] / README
diff --git a/README b/README
index 9a023acd13a714c3b5404d2e6d015e9138b8fd71..10f1884bfd1d348cfd6472bcb2aff79d27fc9744 100644 (file)
--- a/README
+++ b/README
@@ -21,42 +21,76 @@ Install
 -------
 
 $ make
-# doas make install
+# make install
 
 
 Dependencies
 ------------
 
 - libgit2 (v0.22+).
-- C compiler
+- libc (tested with OpenBSD, FreeBSD, glibc and musl).
+- C compiler (C99).
 - make
 
 
 Documentation
 -------------
 
-$ man stagit
-$ man stagit-index
+See man pages: stagit(1) and stagit-index(1).
+
+
+Building a static binary
+------------------------
+
+It may be useful to build static binaries, for example to run in a chroot.
+
+It can be done like this at the time of writing (v0.24):
+
+cd libgit2-src
+
+# change the options in the CMake file: CMakeLists.txt
+BUILD_SHARED_LIBS to OFF (static)
+CURL to OFF              (not needed)
+USE_SSH OFF              (not needed)
+THREADSAFE OFF           (not needed)
+USE_OPENSSL OFF          (not needed, use builtin)
+
+mkdir -p build && cd build
+cmake ../
+make
+make install
 
 
 Features
 --------
 
-- Log of all commits.
+- Log of all commits from HEAD.
 - Log and diffstat per commit.
 - Show file tree with linkable line numbers.
+- Show references: local branches and tags.
 - Detect README and LICENSE file from HEAD and link it as a webpage.
-- Atom feed log.
+- Detect submodules (.gitmodules file) from HEAD and link it as a webpage.
+- Atom feed log (atom.xml).
 - Make index page for multiple repositories with stagit-index.
 - After generating the pages (relatively slow) serving the files is very fast,
   simple and requires little resources (because the content is static), only
   a HTTP file server is required.
+- Usable with text-browsers such as dillo, links, lynx and w3m.
 
 
 Cons
 ----
 
-- Not suitable for large repositories (2000+ commits).
-- Not suitable for repositories with many branches, a quite linear history is assumed.
-- Relatively slow to run the first time (about 3 seconds for sbase, 1500+ commits),
-  incremental updates after it are faster.
+- Not suitable for large repositories (2000+ commits), because diffstats are
+  an expensive operation.
+- Not suitable for repositories with many branches, a quite linear history is
+  assumed (from HEAD).
+- Relatively slow to run the first time (about 3 seconds for sbase,
+  1500+ commits), incremental updates after it are faster.
+- Does not support some of the dynamic features cgit has, like:
+  - snapshot tarballs.
+  - file tree per commit.
+  - history log of branches diverged from HEAD.
+  - stats (git shortlog -s).
+
+  this is by design, just use git locally.