From: Tomas Doran Date: Sun, 17 Jan 2010 23:30:29 +0000 (+0000) Subject: Git commit kinda sorta working X-Git-Tag: 0.000006_01~1^2~89 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=86692bbbf5f8e87df11a67f69e340fe4b702d393;p=catagits%2FGitalist.git Git commit kinda sorta working --- diff --git a/root/commit/commit.tt2 b/root/commit/commit.tt2 new file mode 100644 index 0000000..20b1cca --- /dev/null +++ b/root/commit/commit.tt2 @@ -0,0 +1,5 @@ +[% INCLUDE 'nav/actions.tt2' object = commit %] + +
+ [% subinclude('/fragment/commit/commit', c.req.captures) %] +
diff --git a/root/fragment/commit/commit.tt2 b/root/fragment/commit/commit.tt2 new file mode 100644 index 0000000..708ad43 --- /dev/null +++ b/root/fragment/commit/commit.tt2 @@ -0,0 +1,39 @@ +
+ [% + short_cmt(Commit.comment) | html; + INCLUDE '_refs.tt2' object = commit; + %] +
+ +
+
author
+
[% Commit.author.name | html %] <[% Commit.author.email %]>
+ [% Commit.authored_time %]
+
committer
+
[% Commit.committer.name %] <[% Commit.committer.email %]>
+ [% Commit.committed_time %]
+
commit
+
[% Commit.sha1 %]
+
tree
+
[% Commit.tree_sha1 %] + tree +
+ [% FOREACH parent IN Commit.parents %] +
parent
+
[% parent.sha1 %] + + commit + diff + +
+ [% END %] +
+ +
[% Commit.comment | html%]
+ + [% + # In the case of merge commits there will be no diff tree. + IF diff_tree.size > 0; + INCLUDE '_diff_tree.tt2'; + END; + %] \ No newline at end of file