App-GitGot

 view release on metacpan or  search on metacpan

lib/App/GitGot/Command/gc.pm  view on Meta::CPAN

# ABSTRACT: Run the 'gc' command to garbage collect in git repos
use 5.014;

use Data::Dumper;
use Try::Tiny;

use Moo;
extends 'App::GitGot::Command';
use namespace::autoclean;

# incremental output looks nicer for this command...
STDOUT->autoflush(1);
sub _use_io_page { 0 }

sub _execute {
  my( $self, $opt, $args ) = @_;

  my $max_len = $self->max_length_of_an_active_repo_label;

 REPO: for my $repo ( $self->active_repos ) {
    next REPO unless $repo->type eq 'git';

lib/App/GitGot/Command/push.pm  view on Meta::CPAN


use Data::Dumper;
use Try::Tiny;

use App::GitGot -command;

use Moo;
extends 'App::GitGot::Command';
use namespace::autoclean;

# incremental output looks nicer for this command...
STDOUT->autoflush(1);
sub _use_io_page { 0 }

sub _execute {
  my( $self, $opt, $args ) = @_;

  my $max_len = $self->max_length_of_an_active_repo_label;

 REPO: for my $repo ( $self->active_repos ) {
    next REPO unless $repo->type eq 'git';



( run in 0.412 second using v1.01-cache-2.11-cpan-64827b87656 )