From cf8f00c6b626d09f033338ca9d92d89097e21be4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 5 Nov 2007 20:32:58 -0500 Subject: example of setting up git-gc --- README | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'README') 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 -- cgit v1.2.3