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 | fad59775ca48a440b860401a5f6a158ab7c97b9b (patch) | |
tree | a78d74a7abcc6ed928ecce2f6e33ba2874c16bdc | |
parent | 11df21a0caedfa2a3a5eac0bee435e02a8e70957 (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" |