summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-06-12 15:36:08 +0100
committerSean Whitton <spwhitton@spwhitton.name>2023-06-13 13:54:14 +0100
commit5bd256590d5c5bad2b6441709727beca73ebd052 (patch)
tree08d9c201170cf76004f4ebac6b95a40c4ef20154 /lib-src
parentda6eea669029d1fa761f5e091f490278de7ac803 (diff)
downloaddotfiles-5bd256590d5c5bad2b6441709727beca73ebd052.tar.gz
mr pre_status actions: use 'git annex restage'
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/mr/config12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib-src/mr/config b/lib-src/mr/config
index 5dbbe2c4..48d83a58 100644
--- a/lib-src/mr/config
+++ b/lib-src/mr/config
@@ -160,8 +160,7 @@ checkout = git clone athenag:libpriv.git priv
update = git annex sync --content cloud origin
push = git annex sync --content cloud origin
sync = mr autoci && git annex sync --no-commit --content cloud origin
-pre_status = git update-index -q --refresh \
- .passwddb.pet .labbook.gpg .gnupg/pubring.kbx
+pre_status = git annex restage
fixups =
chmod 600 \
.passwddb.pet .gnupg/*.kbx .gnupg/private-keys-v1.d/*.key .ssh/id_*
@@ -193,14 +192,7 @@ pre_update = on athena || git annex sync origin athenah
pre_push = on athena || git annex sync --content origin athenah
post_update = hstow restow ~/src/athpriv
post_checkout = hstow stow ~/src/athpriv
-# Deal with phantom modifications because git-annex couldn't update the index.
-# Avoid calling git-update-index(1) on other score files (including those
-# we've already called it on since the last commit) so as to avoid continually
-# annexing intermediate versions of score files.
-pre_status = git status -s -- News/*.SCORE News/*.ADAPT \
- | perl -MGit=unquote_path,command \
- -wlne'/^ M / and push @up, unquote_path $'"'"';
- END { @up and command qw(update-index -q --refresh), @up }'
+pre_status = git annex restage
skip = ! mine
post_checkout =