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
commit51cac6b8520d03ba954fbd311a4094260f4ef523 (patch)
tree61c274c2dbcf910ae0025ce52f41982a84b8e49e /refactory/bin
parenta698ab72af2a57d18b8685f591a310831f97eff5 (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"