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 | 19e7452c1b4d4aa9d02ed54eaeff77e016eba7fc (patch) | |
tree | ac8bb670450887967c364553b8acead84ec060e4 /Refactory | |
parent | e75ec1aa60e9b7c05f62ee910358719192b6b02b (diff) |
git-eternal-move: add to wrong location
Diffstat (limited to 'Refactory')
-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" |