9 open FI
,"-|","git remote";
12 push @remotes,$_ if($_);
17 my $url = `git config --get "remote.$_.url"`;
19 #print "pushing to [$_] $url ...\n";
20 if(system(qw
/git push -v/,$_)==0) {
24 print "pushing to $_ failed\n";
31 print "NO remotes found, stop pushing\n";
36 my $NEED_COMMIT = `git diff`;
40 #$NEED_COMMIT ? 3 : 2;
42 print "[$idx/$total] git commit ", (@ARGV ?
join(" ",@ARGV) : ""), "\n";
44 if (system(qw
/git commit/,@ARGV) != 0) {
45 die "[$idx/$total] git commit failed\n";
49 system(qw
/git commit/,@ARGV);
54 print "[$idx/$total] git svn dcommit\n";
55 if(system(qw
/git svn dcommit/) != 0) {
56 die "[$idx/$total] git svn dcommit failed\n";
61 print "[$idx/$total] git push --all [remotes]\n";
62 #system(qw/git remote -v/);
64 die "[$idx/$total] git push --all [remotes] failed\n";
79 git-svn-push - PERL script
83 git-svn-push [options] ...
91 Print version infomation.
95 Print a brief help message and exits.
97 =item B<--manual>,B<--man>
99 View application manual
103 Invoke 'editor' against the source
113 2010-10-31 xiaoranzzz <xiaoranzzz@myplace.hell>
119 xiaoranzzz <xiaoranzzz@myplace.hell>