Deprecated the GPP Model and merged its sole method into the Git model.
[catagits/Gitalist.git] / templates / commit.tt2
1 [% INCLUDE 'commit-nav.tt2' %]
2 <div>
3 [% commit.comment %]
4 [% FOREACH ref IN c.model('Git').refs_for(commit.sha1) %]
5  <span class='refs'><a href='/shortlog?h=[% commit.sha1 %];hb=[% ref %]'>[% ref %]</a></span>
6 [% END %]
7 </div>
8
9 <dl>
10  <dt>author</dt>
11   <dd>[% commit.author.name %] &lt;[% commit.author.email %]&gt;<br/>
12       [% commit.authored_time %]</dd>
13  <dt>committer</dt>
14   <dd>[% commit.committer.name %] &lt;[% commit.committer.email %]&gt;<br/>
15       [% commit.committed_time %]</dd>
16  <dt>commit</dt>
17   <dd>[% commit.sha1 %]</dd>
18  <dt>tree</dt>
19   <dd>[% commit.tree_sha1 %] <a href="/tree?h=[% commit.sha1 %];hb=[% commit.tree_sha1 %]">tree</a></dd>
20  [% FOREACH parent IN commit.parents %]
21  <dt>parent</dt>
22   <dd>[% parent %] <a href="/commit?h=[% commit.sha1 %]">commit</a></dd>
23  [% END %]
24 </dl>
25
26 <!--
27
28 $Git_PurePerl_Object_Commit1 = bless( {
29                                  author   => bless( {
30                                                email => 'broq@cpan.org',
31                                                name  => 'broquaint'
32                                              }, 'Git::PurePerl::Actor' ),
33                                  authored_time
34                                           => {
35                                                DateTime
36                                              },
37                                  comment  => 'The blob action now has simple (but functioning) syntax highlighting (thanks to jrockway\'s Angerwhale for the highlighting code).',
38                                  committed_time
39                                           => {
40                                                DateTime
41                                              },
42                                  committer
43                                           => bless( {
44                                                email => 'broq@cpan.org',
45                                                name  => 'broquaint'
46                                              }, 'Git::PurePerl::Actor' ),
47                                  content  => "tree 278387038d3a42dcc9b3b33d6809c71371caee90\nparent b222ff0a7260cc1777c".
48         "7e455dfcaf22551a512fc\nauthor broquaint <broq\@cpan.org> 1256204829 +0100\n".
49         "committer broquaint <broq\@cpan.org> 1256204829 +0100\n\nThe blob action no".
50         "w has simple (but functioning) syntax highlighting (thanks to jrockway's".
51         " Angerwhale for the highlighting code).\n",
52                                  git      => bless( {
53                                                directory => {
54                                                               dirs     => [ '.' ],
55                                                               file_spec_class
56                                                                        => undef,
57                                                               volume   => ''
58                                                             },
59                                                gitdir    => {
60                                                               dirs     => [ '.git' ],
61                                                               file_spec_class
62                                                                        => undef,
63                                                               volume   => ''
64                                                             },
65                                                loose     => bless( { directory => {
66                                                               dirs     => [
67                                                                             '.git',
68                                                                             'objects'
69                                                                           ],
70                                                               file_spec_class
71                                                                        => undef,
72                                                               volume   => ''
73                                                             } }, 'Git::PurePerl::Loose' ),
74                                                packs     => [ bless( {
75                                                               fh      => bless( do{ require Symbol; Symbol::gensym }, 'IO::File' ),
76                                                               filename
77                                                                       => {
78                                                                            dir     => {
79                                                                                         dirs     => [
80                                                                                                       '.git',
81                                                                                                       'objects',
82                                                                                                       'pack'
83                                                                                                     ],
84                                                                                         file_spec_class
85                                                                                                  => undef,
86                                                                                         volume   => ''
87                                                                                       },
88                                                                            file    => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.pack',
89                                                                            file_spec_class
90                                                                                    => undef
91                                                                          },
92                                                               index   => bless( {
93                                                                            fh       => bless( Symbol::gensym, 'IO::File' ),
94                                                                            filename => {
95                                                                                          dir     => {
96                                                                                                       dirs     => [
97                                                                                                                     '.git',
98                                                                                                                     'objects',
99                                                                                                                     'pack'
100                                                                                                                   ],
101                                                                                                       file_spec_class
102                                                                                                                => undef,
103                                                                                                       volume   => ''
104                                                                                                     },
105                                                                                          file    => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.idx',
106                                                                                          file_spec_class
107                                                                                                  => undef
108                                                                                        },
109                                                                            offsets  => [
110                                                                                          ( 0 ) x 23,
111                                                                                          ( 1 ) x 29,
112                                                                                          ( 2 ) x 11,
113                                                                                          ( 3 ) x 6,
114                                                                                          ( 4 ) x 22,
115                                                                                          ( 5 ) x 51,
116                                                                                          ( 6 ) x 78,
117                                                                                          ( 7 ) x 3,
118                                                                                          ( 8 ) x 34
119                                                                                        ],
120                                                                            size     => 8
121                                                                          }, 'Git::PurePerl::PackIndex::Version2' ),
122                                                               index_filename
123                                                                       => {
124                                                                            dir     => {
125                                                                                         dirs     => [
126                                                                                                       '.git',
127                                                                                                       'objects',
128                                                                                                       'pack'
129                                                                                                     ],
130                                                                                         file_spec_class
131                                                                                                  => undef,
132                                                                                         volume   => ''
133                                                                                       },
134                                                                            file    => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.idx',
135                                                                            file_spec_class
136                                                                                    => undef
137                                                                          }
138                                                             }, 'Git::PurePerl::Pack::WithIndex' ) ]
139                                              }, 'Git::PurePerl' ),
140                                  kind     => 'commit',
141                                  parent_sha1
142                                           => 'b222ff0a7260cc1777c7e455dfcaf22551a512fc',
143                                  parents  => [ 'b222ff0a7260cc1777c7e455dfcaf22551a512fc' ],
144                                  sha1     => '7e54e579e196c6c545fee1030175f65a111039d4',
145                                  size     => 328,
146                                  tree_sha1
147                                           => '278387038d3a42dcc9b3b33d6809c71371caee90'
148                                }, 'Git::PurePerl::Object::Commit' );
149 $Git_PurePerl_Object_Commit1->{committed_time}{locale} = $Git_PurePerl_Object_Commit1->{authored_time}{locale};
150 bless( $Git_PurePerl_Object_Commit1->{authored_time}, 'DateTime' );
151 bless( $Git_PurePerl_Object_Commit1->{committed_time}, 'DateTime' );
152 bless( $Git_PurePerl_Object_Commit1->{git}{directory}, 'Path::Class::Dir' );
153 bless( $Git_PurePerl_Object_Commit1->{git}{gitdir}, 'Path::Class::Dir' );
154 bless( $Git_PurePerl_Object_Commit1->{git}{loose}{directory}, 'Path::Class::Dir' );
155 bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{filename}{dir}, 'Path::Class::Dir' );
156 bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{filename}, 'Path::Class::File' );
157 bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index}{filename}{dir}, 'Path::Class::Dir' );
158 bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index}{filename}, 'Path::Class::File' );
159 bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index_filename}{dir}, 'Path::Class::Dir' );
160 bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index_filename}, 'Path::Class::File' );
161 -->