From d6103b4c25348393f4eae7dd995a40575b4b1ea3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 19 Sep 2014 18:23:55 -0400 Subject: [PATCH] Add git-move-root-to extension --- bin/git-move-root-to | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/git-move-root-to diff --git a/bin/git-move-root-to b/bin/git-move-root-to new file mode 100755 index 00000000..0fdeaf51 --- /dev/null +++ b/bin/git-move-root-to @@ -0,0 +1,6 @@ +#!/bin/sh + +git filter-branch \ + --subdirectory-filter "$@" \ + --tag-name-filter cat \ + --prune-empty -- --all