aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-xexp/exp.sh18
1 files changed, 18 insertions, 0 deletions
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