blob: bcf79501296adafca568ff2ee066f335877d40c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/sh
#
# git-eternal-move FROM TO
#
set -euf
if test $# -ne 2; then
echo 'Error 1: You are made of stupid!' >&2
exit 23
fi
exec git filter-branch --tree-filter "
set -euf
if test -e '$1'; then
mv '$1' '$2'
fi"
|