git-migration: pld-git.sh - function to use git-filter-branch on converted ...
draenog
draenog at pld-linux.org
Mon Feb 14 01:40:46 CET 2011
Author: draenog Date: Mon Feb 14 00:40:46 2011 GMT
Module: git-migration Tag: HEAD
---- Log message:
- function to use git-filter-branch on converted git repos
---- Files affected:
git-migration:
pld-git.sh (1.23 -> 1.24)
---- Diffs:
================================================================
Index: git-migration/pld-git.sh
diff -u git-migration/pld-git.sh:1.23 git-migration/pld-git.sh:1.24
--- git-migration/pld-git.sh:1.23 Mon Feb 14 01:38:47 2011
+++ git-migration/pld-git.sh Mon Feb 14 01:40:41 2011
@@ -184,6 +184,19 @@
done
}
+# make final changes to converted repos by git-filter-branch
+git_filter() {
+ set -$d
+
+ local tree_filter=$(pwd)/"tree_filter.sh"
+
+ cvs_pkgs
+ for pkg in ${@-:$(cat cvs.pkgs)}; do
+ GIT_DIR=$gitdir/$pkg git filter-branch --tree-filter ". $tree_filter" -- --all
+ done
+ [ -d .git-rewrite ] && rm -r .git-rewrite
+}
+
# create template dir of git_bare
# we copy system template dir and remove samples from it
git_templates() {
@@ -281,6 +294,7 @@
#import_git-cvsimport "$@"
import_cvs2git "$@"
+git_filter "$@"
# missingusers needed only to analyze missing users file
#git_missingusers
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/pld-git.sh?r1=1.23&r2=1.24&f=u
More information about the pld-cvs-commit
mailing list