Commit | Line | Data |
c8870bd3 |
1 | [% INCLUDE 'commit-nav.tt2' object = commit %] |
b3ad9e63 |
2 | <div class='commit-message'> |
3 | [% commit.comment.substr(0, 50) %] ... |
1ef8dc7d |
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 | |
b3ad9e63 |
9 | <dl class='commit-info'> |
1ef8dc7d |
10 | <dt>author</dt> |
11 | <dd>[% commit.author.name %] <[% commit.author.email %]><br/> |
12 | [% commit.authored_time %]</dd> |
13 | <dt>committer</dt> |
14 | <dd>[% commit.committer.name %] <[% commit.committer.email %]><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 | |
c8870bd3 |
26 | <pre class='commit-message'>[% commit.comment %]</pre> |
b3ad9e63 |
27 | |
28 | <table class='diff-tree'> |
29 | <thead> |
30 | <td>file</td> |
31 | <td>actions</td> |
32 | </thead> |
33 | <tbody> |
34 | [% FOREACH line IN c.model('Git').diff_tree(commit) %] |
35 | <tr> |
36 | <td class='filename'>[% line.src %]</td> |
37 | <td class='action-list'> |
c8870bd3 |
38 | [% IF !line.is_new %]<a href="/blobdiff?p=[% project %];f=[% line.file %];h=[% line.sha1dst %];hp=[% sha1src %]">diff</a>[% END %] |
39 | <a href="/blob?p=[% project %];f=[% line.file %];h=[% line.sha1 %];hb=[% commit.sha1 %]">blob</a> |
40 | [% IF !line.is_new %]<a href="/log?p=[% project %];f=[% line.file %];hb[% commit.sha1 %]=">history</a>[% END %] |
b3ad9e63 |
41 | </td> |
42 | </tr> |
43 | [% END %] |
44 | </tbody> |
45 | <tfoot> |
46 | <td>file</td> |
47 | <td>actions</td> |
48 | </tfoot> |
49 | </table> |
50 | |
1ef8dc7d |
51 | <!-- |
52 | |
53 | $Git_PurePerl_Object_Commit1 = bless( { |
54 | author => bless( { |
55 | email => 'broq@cpan.org', |
56 | name => 'broquaint' |
57 | }, 'Git::PurePerl::Actor' ), |
58 | authored_time |
59 | => { |
60 | DateTime |
61 | }, |
62 | comment => 'The blob action now has simple (but functioning) syntax highlighting (thanks to jrockway\'s Angerwhale for the highlighting code).', |
63 | committed_time |
64 | => { |
65 | DateTime |
66 | }, |
67 | committer |
68 | => bless( { |
69 | email => 'broq@cpan.org', |
70 | name => 'broquaint' |
71 | }, 'Git::PurePerl::Actor' ), |
72 | content => "tree 278387038d3a42dcc9b3b33d6809c71371caee90\nparent b222ff0a7260cc1777c". |
73 | "7e455dfcaf22551a512fc\nauthor broquaint <broq\@cpan.org> 1256204829 +0100\n". |
74 | "committer broquaint <broq\@cpan.org> 1256204829 +0100\n\nThe blob action no". |
75 | "w has simple (but functioning) syntax highlighting (thanks to jrockway's". |
76 | " Angerwhale for the highlighting code).\n", |
77 | git => bless( { |
78 | directory => { |
79 | dirs => [ '.' ], |
80 | file_spec_class |
81 | => undef, |
82 | volume => '' |
83 | }, |
84 | gitdir => { |
85 | dirs => [ '.git' ], |
86 | file_spec_class |
87 | => undef, |
88 | volume => '' |
89 | }, |
90 | loose => bless( { directory => { |
91 | dirs => [ |
92 | '.git', |
93 | 'objects' |
94 | ], |
95 | file_spec_class |
96 | => undef, |
97 | volume => '' |
98 | } }, 'Git::PurePerl::Loose' ), |
99 | packs => [ bless( { |
100 | fh => bless( do{ require Symbol; Symbol::gensym }, 'IO::File' ), |
101 | filename |
102 | => { |
103 | dir => { |
104 | dirs => [ |
105 | '.git', |
106 | 'objects', |
107 | 'pack' |
108 | ], |
109 | file_spec_class |
110 | => undef, |
111 | volume => '' |
112 | }, |
113 | file => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.pack', |
114 | file_spec_class |
115 | => undef |
116 | }, |
117 | index => bless( { |
118 | fh => bless( Symbol::gensym, 'IO::File' ), |
119 | filename => { |
120 | dir => { |
121 | dirs => [ |
122 | '.git', |
123 | 'objects', |
124 | 'pack' |
125 | ], |
126 | file_spec_class |
127 | => undef, |
128 | volume => '' |
129 | }, |
130 | file => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.idx', |
131 | file_spec_class |
132 | => undef |
133 | }, |
134 | offsets => [ |
135 | ( 0 ) x 23, |
136 | ( 1 ) x 29, |
137 | ( 2 ) x 11, |
138 | ( 3 ) x 6, |
139 | ( 4 ) x 22, |
140 | ( 5 ) x 51, |
141 | ( 6 ) x 78, |
142 | ( 7 ) x 3, |
143 | ( 8 ) x 34 |
144 | ], |
145 | size => 8 |
146 | }, 'Git::PurePerl::PackIndex::Version2' ), |
147 | index_filename |
148 | => { |
149 | dir => { |
150 | dirs => [ |
151 | '.git', |
152 | 'objects', |
153 | 'pack' |
154 | ], |
155 | file_spec_class |
156 | => undef, |
157 | volume => '' |
158 | }, |
159 | file => 'pack-76da0c32a0a4918d1828d110636caad32af6ec6c.idx', |
160 | file_spec_class |
161 | => undef |
162 | } |
163 | }, 'Git::PurePerl::Pack::WithIndex' ) ] |
164 | }, 'Git::PurePerl' ), |
165 | kind => 'commit', |
166 | parent_sha1 |
167 | => 'b222ff0a7260cc1777c7e455dfcaf22551a512fc', |
168 | parents => [ 'b222ff0a7260cc1777c7e455dfcaf22551a512fc' ], |
169 | sha1 => '7e54e579e196c6c545fee1030175f65a111039d4', |
170 | size => 328, |
171 | tree_sha1 |
172 | => '278387038d3a42dcc9b3b33d6809c71371caee90' |
173 | }, 'Git::PurePerl::Object::Commit' ); |
174 | $Git_PurePerl_Object_Commit1->{committed_time}{locale} = $Git_PurePerl_Object_Commit1->{authored_time}{locale}; |
175 | bless( $Git_PurePerl_Object_Commit1->{authored_time}, 'DateTime' ); |
176 | bless( $Git_PurePerl_Object_Commit1->{committed_time}, 'DateTime' ); |
177 | bless( $Git_PurePerl_Object_Commit1->{git}{directory}, 'Path::Class::Dir' ); |
178 | bless( $Git_PurePerl_Object_Commit1->{git}{gitdir}, 'Path::Class::Dir' ); |
179 | bless( $Git_PurePerl_Object_Commit1->{git}{loose}{directory}, 'Path::Class::Dir' ); |
180 | bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{filename}{dir}, 'Path::Class::Dir' ); |
181 | bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{filename}, 'Path::Class::File' ); |
182 | bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index}{filename}{dir}, 'Path::Class::Dir' ); |
183 | bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index}{filename}, 'Path::Class::File' ); |
184 | bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index_filename}{dir}, 'Path::Class::Dir' ); |
185 | bless( $Git_PurePerl_Object_Commit1->{git}{packs}[0]{index_filename}, 'Path::Class::File' ); |
186 | --> |