From: martin f. krafft Date: Wed, 6 Nov 2019 02:29:09 +0000 (+1300) Subject: add pass repo X-Git-Url: https://git.madduck.net/etc/myrepos.git/commitdiff_plain/763007161449be22405046b4d37c7a64ca020200?ds=inline;hp=27a089887774ef811c9da9beb0e0087aceed7625 add pass repo --- 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