aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/git_wiki')
-rw-r--r--bn_django/git_wiki/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py
index f0a7e9c..83a275b 100644
--- a/bn_django/git_wiki/models.py
+++ b/bn_django/git_wiki/models.py
@@ -151,6 +151,8 @@ class Commit(models.Model):
self.author_date = time.ctime(int(raw[1].split()[-2]))
self.committer = raw[2].split()[1]
self.committer_date = time.ctime(int(raw[2].split()[-2]))
+ self.rawdiff = commands.getoutput(GITPREFIX + ' diff ' \
+ + self.parenthash + ' ' + self.id + ' | cat')
if len(raw) > 3:
for l in raw[3:]:
self.comment += str(l) + '\n'