summaryrefslogtreecommitdiffstats
path: root/Refactory/bin
diff options
context:
space:
mode:
authortv <tv@also>2011-08-06 02:31:31 +0200
committertv <tv@also>2011-08-06 02:31:31 +0200
commit27dcf84d4d08ffe45a5ca10ccbfa25607e48e79d (patch)
tree55a161ae86f636234147b70a9cf82d4600efe3ce /Refactory/bin
parent0472661fa17f4d06bb4f01e2c844935d64adc3f0 (diff)
git-eternal-move: add to wrong location
Diffstat (limited to 'Refactory/bin')
-rwxr-xr-xRefactory/bin/git-eternal-move11
1 files changed, 11 insertions, 0 deletions
diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move
new file mode 100755
index 00000000..075748fd
--- /dev/null
+++ b/Refactory/bin/git-eternal-move
@@ -0,0 +1,11 @@
+#! /bin/sh
+#
+# git-eternal-move FROM TO
+#
+set -euf
+git filter-branch --tree-filter "
+ set -euf
+ if test -e '$1'; then
+ mkdir -p '`dirname "$2"`'
+ mv '$1' '$2'
+ fi"