App-Git-Autofixup
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
sub current_commit_sha {
my ($self, $dir) = @_;
my $revision = qx{git rev-parse HEAD};
$? == 0 or croak "git rev-parse: $!";
chomp $revision;
return $revision;
}
sub autofixup {
my $self = shift;
local @ARGV = @_;
print "# git-autofixup ", join(' ', @ARGV), "\n";
return Autofixup::main();
}
sub switch_to_downstream_branch {
my ($self, $branch) = @_;
my $tracking_branch = qx(git rev-parse --abbrev-ref HEAD)
or croak "get tracking branch: $!";
chomp $tracking_branch;
Util::run(qw(git checkout -q -b), $branch, '--track', $tracking_branch);
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.474 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )