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 | 280409f3e359983655633a4397a76f13c4f41ef0 (patch) | |
tree | 7389193175f632fc16e05c0aee17defb72ce3d43 /refactory | |
parent | 7213f1737c802e61d7300949c1af999898aa4fed (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" |