summaryrefslogtreecommitdiffstats
path: root/.graveyard/git
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-03-14 04:52:26 +0100
committertv <tv@nomic.retiolum>2014-03-14 04:52:26 +0100
commitcb00aa8f64253085965bfc63aa8b1b2bb947449d (patch)
tree19d2915539af0286c2cb4f35f700f73854972f7f /.graveyard/git
parentecea0f9dadf6995f2cdebfa270482852d244a2c5 (diff)
RIP git-eternal-move
Diffstat (limited to '.graveyard/git')
-rwxr-xr-x.graveyard/git/git-eternal-move15
1 files changed, 15 insertions, 0 deletions
diff --git a/.graveyard/git/git-eternal-move b/.graveyard/git/git-eternal-move
new file mode 100755
index 00000000..50361e7b
--- /dev/null
+++ b/.graveyard/git/git-eternal-move
@@ -0,0 +1,15 @@
+#! /bin/sh
+#
+# git-eternal-move FROM TO-DIRECTORY
+#
+set -euf
+if test $# -ne 2; then
+ echo 'Error 1: You are made of stupid!' >&2
+ exit 23
+fi
+exec git filter-branch --tree-filter "
+ set -euf
+ if test -e '$1'; then
+ mkdir -p '$2'
+ mv '$1' '$2'
+ fi"