diff options
Diffstat (limited to 'git-filter-branch.sh')
-rw-r--r--[-rwxr-xr-x] | git-filter-branch.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh index bfd118cd3b..8fa5ce6467 100755..100644 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -178,6 +178,14 @@ # # git-filter-branch ... new-H C..H --not D # git-filter-branch ... new-H D..H --not C +# +# To move the whole tree into a subdirectory, or remove it from there: +# +# git-filter-branch --index-filter \ +# 'git-ls-files -s | sed "s-\t-&newsubdir/-" | +# GIT_INDEX_FILE=$GIT_INDEX_FILE.new \ +# git-update-index --index-info && +# mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE' directorymoved # Testsuite: TODO |