summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 20:32:58 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 20:32:58 -0500
commitcf8f00c6b626d09f033338ca9d92d89097e21be4 (patch)
treeaa0e585753e5a1e87a8b109774fc92c08de16f44 /README
parentcf66073dbab5c4c9f74b4e2ba24aba05ccbbe6b2 (diff)
example of setting up git-gc
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 12 insertions, 3 deletions
diff --git a/README b/README
index c2b2bde..8e03b32 100644
--- a/README
+++ b/README
@@ -125,9 +125,18 @@ control, the sky's the limit..
Each etckeeper command uses `run-parts` to run the executable files in
/etc/etckeeper/$command.d/. By default these directories contain a bunch of
-symlinks to the actual files; you can remove or reorder the symlinks,
-or add your own custom files. Each individual file is short, simple, and
-does only one action.
+symlinks to the actual files; you can remove or reorder the symlinks, or
+add your own custom files. Each individual file is short, simple, and does
+only one action. You can even just symlink in existing programs to run
+them.
+
+For example, here's how to configure it to run `git-gc` after each apt run,
+which will save a lot of disk space:
+
+ cd /etc/etckeeper/post-apt.d
+ ln -s /usr/bin/git-gc 99git-gc
+ git add .
+ git-commit -m "run git-gc after each apt run"
Note that the etckeeper commands are careful to not hardcode anything about
git. If you want to use some other revision control system, that's