git-migration: cvs2git_fixes.sh - right way to suppress diff output from gi...
draenog
draenog at pld-linux.org
Tue Aug 23 16:26:46 CEST 2011
Author: draenog Date: Tue Aug 23 14:26:46 2011 GMT
Module: git-migration Tag: HEAD
---- Log message:
- right way to suppress diff output from git-show
---- Files affected:
git-migration:
cvs2git_fixes.sh (1.10 -> 1.11)
---- Diffs:
================================================================
Index: git-migration/cvs2git_fixes.sh
diff -u git-migration/cvs2git_fixes.sh:1.10 git-migration/cvs2git_fixes.sh:1.11
--- git-migration/cvs2git_fixes.sh:1.10 Tue Apr 5 15:25:31 2011
+++ git-migration/cvs2git_fixes.sh Tue Aug 23 16:26:41 2011
@@ -40,7 +40,7 @@
cat $file_tags | \
while read rev tagname; do
- if [ "`git show --format="%an" --quiet $rev`" = "cvs2svn" ]; then
+ if [ "`git show --format="%an" -s $rev`" = "cvs2svn" ]; then
git diff-tree --diff-filter=ACMRTUXB --quiet $rev~ $rev && \
[ -z "`git branch --contains $rev`" ] && \
git update-ref "$tagname" $rev~
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/cvs2git_fixes.sh?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list