From cda8a65123b95b1c59fd43cec8a0863b484c5deb Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Thu, 30 Sep 2021 19:06:33 +0200 Subject: move script in its own file for comfort and start making some stats --- exp/exp.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 exp/exp.sh (limited to 'exp/exp.sh') diff --git a/exp/exp.sh b/exp/exp.sh new file mode 100755 index 0000000..8cc1fa4 --- /dev/null +++ b/exp/exp.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +commits_file=$1 +repo_path=$2 + +temp_templ="dna-backup-bench-XXXXX" +mktemp="mktemp --tmpdir -d $temp_templ" + +temp=$($mktemp) +echo temp dir: $temp >&2 + +cat $commits_file | while read i +do + hash=$(echo "$i" | cut -f1) + git -C $repo_path checkout $hash + ../dna-backup commit -v 2 $repo_path $temp +done +du -bad 2 $temp -- cgit v1.2.3