aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2018-10-01 22:25:11 +0200
committerAlberto Bertogli <albertito@blitiri.com.ar>2018-10-01 22:39:57 +0200
commitcbb36e087c1bcf1c81de53e920baf0c681abfd87 (patch)
tree6fccb33508c20c66dca0f56ba0b7c97a1cfc1af3 /views
parent722d765973ab368a313455d2179d7b3d67ec25cb (diff)
downloadgit-arr-fork-cbb36e087c1bcf1c81de53e920baf0c681abfd87.zip
Implement a "patch" view0.15
This commit implements a "patch" view, with a simple plain-text representation of a commit, that can be used as a patch file.
Diffstat (limited to 'views')
-rw-r--r--views/patch.tpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/views/patch.tpl b/views/patch.tpl
new file mode 100644
index 0000000..ab3fca1
--- /dev/null
+++ b/views/patch.tpl
@@ -0,0 +1,8 @@
+From: {{c.author_name}} <{{c.author_email}}>
+Date: {{c.author_date}}
+Subject: {{c.subject}}
+
+{{c.body.strip()}}
+---
+
+{{c.diff.body}}