Skip to content

Commit 477b1ca

Browse files
committed
add support for mergetag in commits
closes #4
1 parent ef0abb0 commit 477b1ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: lib/Git/PurePerl/Object/Commit.pm

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ has 'committed_time' => ( is => 'rw', isa => 'DateTime', required => 0 );
1919
has 'comment' => ( is => 'rw', isa => 'Str', required => 0 );
2020
has 'encoding' => ( is => 'rw', isa => 'Str', required => 0 );
2121
has 'gpg_signature' => ( is => 'rw', isa => 'Str', required => 0 );
22+
has 'merge_tag' => ( is => 'rw', isa => 'Str', required => 0 );
2223

2324
my %method_map = (
24-
'tree' => [ 'tree_sha1', '-' ], # single line, single value
25-
'parent' => [ 'parent_sha1s', '@' ], # multiple lines, multiple values
26-
'gpgsig' => [ 'gpg_signature', '=' ], # multiple lines, single value
25+
'tree' => [ 'tree_sha1', '-' ], # single line, single value
26+
'parent' => [ 'parent_sha1s', '@' ], # multiple lines, multiple values
27+
'gpgsig' => [ 'gpg_signature', '=' ], # multiple lines, single value
28+
'mergetag' => [ 'merge_tag', '=' ],
2729
);
2830

2931
my %time_attr = (

0 commit comments

Comments
 (0)