summaryrefslogtreecommitdiff
path: root/lib-src/mr/config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-06-12 16:41:40 +0100
committerSean Whitton <spwhitton@spwhitton.name>2023-06-13 13:54:14 +0100
commitcde6c55e427ca03513399e333ff742bab67ed9f1 (patch)
tree6f91fe0305000b94aed5787ae9bd92a2c86c5f90 /lib-src/mr/config
parentda524d1a1b6f0a0f522275834e2c67d2a9f46ca2 (diff)
downloaddotfiles-cde6c55e427ca03513399e333ff742bab67ed9f1.tar.gz
add git-annex-dropoldunused
Diffstat (limited to 'lib-src/mr/config')
-rw-r--r--lib-src/mr/config7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib-src/mr/config b/lib-src/mr/config
index 48d83a58..07e59e98 100644
--- a/lib-src/mr/config
+++ b/lib-src/mr/config
@@ -208,11 +208,8 @@ autoci =
fixups =
# Drop score files unused by master or origin/master for a week.
[ "$MR_ACTION" = checkout -o "$MR_ACTION" = update ] || git fetch origin
- git annex unused \
- --used-refspec="+refs/heads/master:+refs/remotes/origin/master" \
- | perl -wlne'BEGIN { $w = time - 7*24*60*60 } /^\s+(\d+)\s+/
- and $t = `git log -1 --format="%ct" --no-textconv -S"$'"'"'" -- News`
- and $t < $w and print $1' | xargs git annex dropunused --force
+ git annex dropoldunused --force --days=7 \
+ --used-refspec="+refs/heads/master:+refs/remotes/origin/master"
####################################################################