App-GitGerrit
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/GitGerrit.pm view on Meta::CPAN
# 'HEAD' in a dettached head state.
sub current_branch {
chomp(my $branch = qx/git rev-parse --abbrev-ref HEAD/);
return $branch;
}
# The update_branch routine receives a local $branch name and updates
# it with the homonym branch in the Gerrit remote.
sub update_branch {
my ($branch) = @_;
my $remote = config('remote');
cmd "git fetch $remote $branch:$branch";
}
# The change_branch_info routine receives the name of a branch. If
# it's a change-branch, it returns a two-element list containing it's
# upstream name and its id. Otherwise, it returns the empty list.
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.539 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )