From 23abe92fa6700b4b376440a08e6a059efea9af8f Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Fri, 22 Jan 2016 11:17:48 +0100
Subject: [PATCH] added script to filter branch/rm files.

---
 filterBranchRMFiles.sh | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100755 filterBranchRMFiles.sh

diff --git a/filterBranchRMFiles.sh b/filterBranchRMFiles.sh
new file mode 100755
index 0000000..35a2e6d
--- /dev/null
+++ b/filterBranchRMFiles.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+#
+# Copyright 2011 - 2016 by Jan Vales <jan@jvales.net> (Someone <someone@somenet.org>)
+#
+#	This program is free software: you can redistribute it and/or modify
+#	it under the terms of the GNU General Public License as published by
+#	the Free Software Foundation, version 3 of the License.
+#
+#	This program is distributed in the hope that it will be useful,
+#	but WITHOUT ANY WARRANTY; without even the implied warranty of
+#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#	GNU General Public License for more details.
+#
+#	You should have received a copy of the GNU General Public License
+#	along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+if [[ $1 == "" ]] ; then
+	echo "no file-/dir-name given!"
+	exit 1
+fi
+
+SLEEPTIME=5
+echo "Will rewrite branch in repo `pwd` in ${SLEEPTIME} sec."
+sleep $SLEEPTIME
+
+git filter-branch -f --prune-empty --tag-name-filter cat --index-filter '
+	git rm --cached --ignore-unmatch -q -rf '$1'
+	' -- --all
+
-- 
2.43.0