From 763007161449be22405046b4d37c7a64ca020200 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 6 Nov 2019 15:29:09 +1300 Subject: [PATCH 1/1] add pass repo --- .config/myrepos/available.d/pass.conf | 16 ++++++++++++++++ .gitignore.d/myrepos | 1 + 2 files changed, 17 insertions(+) create mode 100644 .config/myrepos/available.d/pass.conf diff --git a/.config/myrepos/available.d/pass.conf b/.config/myrepos/available.d/pass.conf new file mode 100644 index 0000000..c0787fb --- /dev/null +++ b/.config/myrepos/available.d/pass.conf @@ -0,0 +1,16 @@ +[$HOME/.password-store] +checkout = mkdir -p $MR_REPO && cd $MR_REPO && git init && + for host in albatross fishbowl lotus; do + [ $(hostname) != $host ] || continue + git remote add $host ${host}:${MR_REPO#$HOME/} && + git pull --rebase ${host} refs/heads/master + done +update = __branch="$(git name-rev --name-only HEAD)" && + git branch -ar | grep "$__branch" | while read ref; do + git pull --rebase "${ref%/$__branch}" refs/heads/"$__branch" + done; unset __branch +fixups = for i in checkout merge commit; do ln -sf ../../export-database $MR_REPO/.git/hooks/post-$i; done + +[${XDG_CONFIG_HOME:-$HOME/.config}/vcsh/repo.d/pass.git] +checkout = vcsh clone madduck-anon:etc/pass.git + diff --git a/.gitignore.d/myrepos b/.gitignore.d/myrepos index fe25c10..be7697d 100644 --- a/.gitignore.d/myrepos +++ b/.gitignore.d/myrepos @@ -4,6 +4,7 @@ !/.config/myrepos/available.d/.gitignore !/.config/myrepos/available.d/mail.conf !/.config/myrepos/available.d/offlineimap.conf +!/.config/myrepos/available.d/pass.conf !/.config/myrepos/available.d/pim.conf !/.config/myrepos/available.d/texlive.conf !/.config/myrepos/available.d/x.conf -- 2.39.5