summarylogtreecommitdiffstats
path: root/convert-branch.sh
blob: b0e4efc11efc560b8031cd99cf8004e0a363f942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

git filter-branch -f --subdirectory-filter trunk
git filter-branch -f --tree-filter 'makepkg --printsrcinfo > .SRCINFO || rm .SRCINFO' --commit-filter '
	if [ -e .SRCINFO ]
	then
		git commit-tree "$@"
	else
		shift
		while [ -n "$1" ]
		do
			shift
			map "$1"
			shift
		done
	fi'