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