diff options
author | tv <tv@also> | 2011-08-06 02:31:31 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-08-06 02:31:31 +0200 |
commit | c06014749f73f39d28de08a883d6ae995cc880b9 (patch) | |
tree | 136aea55cd2f93cfa1cc62c7bfe23cd26230fe78 | |
parent | 26b6b4a3b7d7d1b6989e3891c1f54477393b844a (diff) |
git-eternal-move: add to wrong location
-rwxr-xr-x | Refactory/bin/git-eternal-move | 11 |
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" |