Guest User

Untitled

a guest
Nov 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use Getopt::Long;
  5.  
  6. warn "Stage\n";
  7. qx(git add -A -v);
  8. warn "Commit\n";
  9. qx(git commit -a --allow-empty-message -m '' -v);
  10.  
  11. # my $logLines = qx(git log --pretty="format:%h %D" `git rev-list -g --all`);
  12. #
  13. # foreach my $logLine (split /\n/, $logLines)
  14. # {
  15. # my ($commit) = $logLine =~ m~^([A-F0-9]+)~i;
  16. # if ($logLine !~ m~tag: \$/${commit}~)
  17. # {
  18. # printf qq(Tagging %s\n), $commit;
  19. # system "git", "tag", "-a", '$/'.$commit, $commit, "-m", "";
  20. # }
  21. # }
  22.  
  23. if (qx(git remote))
  24. {
  25. warn "Push\n";
  26. qx(git push --all -v);
  27. warn "Push tags\n";
  28. qx(git push --tags -v);
  29. warn "Fetch\n";
  30. qx(git fetch --all -v);
  31. exit 0;
  32. }
  33. else
  34. {
  35. warn "No remotes\n";
  36. }
Add Comment
Please, Sign In to add comment