summaryrefslogtreecommitdiffstats
path: root/refactory/bin/git-eternal-move
blob: 075748fd19bcd58b61c3b410c580bb935d31e5bf (plain)
1
2
3
4
5
6
7
8
9
10
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"