logo

utils

~/.local/bin tools and git-hooks
commit: 00dd426808dbbf4be920736287b2532edef1eb63
parent: f2c02a3cccc14002b8aa104774cd6361ddb8d293
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 28 Dec 2018 21:08:45 +0100

git-hooks/post-update.stagit: Display only the firsts 2048 commits and stop using the cache

This fixes the log retaining old rewritten history

Diffstat:

Mgit-hooks/post-update.stagit2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git-hooks/post-update.stagit b/git-hooks/post-update.stagit @@ -4,7 +4,7 @@ update_f=' * Updating %s…' is_ok(){ echo ' [OK]'; } printf "$update_f" stagit -mkdir -p ${base} && cd "${base}" && stagit -c "${base}.cache" "${base}.git" && is_ok +mkdir -p ${base} && cd "${base}" && stagit -l 2048 "${base}.git" && is_ok printf "$update_f" stagit-index cd /git && stagit-index *.git > /git/index.html && is_ok