[PATCH] Improved example "To move the whole tree into a subdirectory..." to not fail when early commits are empty.

2016-06-21 Thread Brett Randall
Previously this example would fail if the oldest commit(s) in any filtered branch is/are empty (no files) because the index would not change, and the mv would fail with: mv: cannot stat /index.new': No such file or directory This commonly occurs with histories created from git-svn-clone

[PATCH] Improved example "To move the whole tree into a subdirectory...".

2015-06-01 Thread Brett Randall
Previously this example would fail if the history contained any empty commit, because the index would not change, and the mv would fail with: mv: cannot stat /index.new': No such file or directory The updated example checks whether the index file has been created before attempting the mv. The em