From eddc4fe5d97af869d51da7c38913c10cf9fa7a6b Mon Sep 17 00:00:00 2001 From: Parabola git Date: Fri, 8 Jul 2016 00:57:36 +0000 Subject: oops --- .local/bin/gitmeta | 3 +++ .local/bin/update-agefiles | 12 ++++++++++++ .local/bin/update-gitmeta | 11 +++++++++++ 3 files changed, 26 insertions(+) create mode 100755 .local/bin/gitmeta create mode 100755 .local/bin/update-agefiles create mode 100755 .local/bin/update-gitmeta (limited to '.local') diff --git a/.local/bin/gitmeta b/.local/bin/gitmeta new file mode 100755 index 0000000..b5d6081 --- /dev/null +++ b/.local/bin/gitmeta @@ -0,0 +1,3 @@ +#!/bin/sh +export GIT_DIR=$HOME/.gitmeta +exec git "$@" diff --git a/.local/bin/update-agefiles b/.local/bin/update-agefiles new file mode 100755 index 0000000..7b3708f --- /dev/null +++ b/.local/bin/update-agefiles @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +cd + +IFS='' +find . -not -path '*/.*' -path '*.git' -type d | +while read -r git_dir; do + pushd "$git_dir" + ~/git-hooks/post-receive.agefile + popd >/dev/null +done diff --git a/.local/bin/update-gitmeta b/.local/bin/update-gitmeta new file mode 100755 index 0000000..0ace903 --- /dev/null +++ b/.local/bin/update-gitmeta @@ -0,0 +1,11 @@ +#!/bin/bash +set -e +message="$1" + +cd +if [[ -n $(gitmeta status -s .) ]]; then + gitmeta add . + gitmeta commit -m "$message" +fi +gitmeta pull +gitmeta push origin master -- cgit v1.2.3