1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
package Git::Raw::Rebase::Operation;
$Git::Raw::Rebase::Operation::VERSION = '0.87';
use strict;
use warnings;
use Carp;
sub AUTOLOAD {
# This AUTOLOAD is used to 'autoload' constants from the constant()
# XS function.
my $constname;
our $AUTOLOAD;
($constname = $AUTOLOAD) =~ s/.*:://;
croak "&Git::Raw::Rebase::Operation::constant not defined" if $constname eq '_constant';
my ($error, $val) = _constant($constname);
if ($error) { croak $error; }
{
no strict 'refs';
*$AUTOLOAD = sub { $val };
}
goto &$AUTOLOAD;
}
use Git::Raw;
=head1 NAME
Git::Raw::Rebase::Operation - Git rebase operation class
=head1 VERSION
version 0.87
=head1 DESCRIPTION
A L<Git::Raw::Rebase::Operation> represents a git rebase operation.
B<WARNING>: The API of this module is unstable and may change without warning
(any change will be appropriately documented in the changelog).
=head1 METHODS
=head2 type( )
The type of rebase operation.
=head2 id( )
The commit ID being cherry-picked. This will return C<undef> for C<EXEC>
operations.
=head2 exec( )
The executable the user has requested to run. This will return C<undef> for all
but C<EXEC> operations.
=head1 CONSTANTS
=head2 PICK
The given commit is to be cherry-picked. The client should commit the changes
and continue if there are no conflicts.
=head2 REWORD
The given commit is to be cherry-picked, but the client should prompt the user
to provide an updated commit message.
=head2 EDIT
The given commit is to be cherry-picked, but the client should stop to allow the
user to edit the changes before committing them.
=head2 SQUASH
The given commit is to be squashed into the previous commit. The commit message
will be merged with the previous message.
=head2 FIXUP
The given commit is to be squashed into the previous commit. The commit message
from this commit will be discarded.
=head2 EXEC
No commit will be cherry-picked. The client should run the given command and
(if successful) continue.
=head1 AUTHOR
Jacques Germishuys <jacquesg@striata.com>
=head1 LICENSE AND COPYRIGHT
Copyright 2016 Jacques Germishuys.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
=cut
1; # End of Git::Raw::Rebase::Operation
|