]> git.madduck.net Git - etc/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add pass repo
authormartin f. krafft <madduck@madduck.net>
Wed, 6 Nov 2019 02:29:09 +0000 (15:29 +1300)
committermartin f. krafft <madduck@madduck.net>
Wed, 6 Nov 2019 02:29:09 +0000 (15:29 +1300)
.config/myrepos/available.d/pass.conf [new file with mode: 0644]
.gitignore.d/myrepos

diff --git a/.config/myrepos/available.d/pass.conf b/.config/myrepos/available.d/pass.conf
new file mode 100644 (file)
index 0000000..c0787fb
--- /dev/null
@@ -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
+
index fe25c1041dcbcad7cf09ce1c33f964e0ce48e73b..be7697d6899595eb45ce619665fedae74d76e9bf 100644 (file)
@@ -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/.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
 !/.config/myrepos/available.d/pim.conf
 !/.config/myrepos/available.d/texlive.conf
 !/.config/myrepos/available.d/x.conf