aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-08-08 02:55:48 -0400
committerbnewbold <bnewbold@manus.(none)>2007-08-08 02:55:48 -0400
commita891065a0447396a89fd03e4f038ca2e996a68aa (patch)
tree1fdc6a809fc96ddc7cfef5b3bbe82b55dddf7bca /bn_django/git_wiki
parent10683070288b879057b70bea56fca96373cb506c (diff)
downloadbnewnet-a891065a0447396a89fd03e4f038ca2e996a68aa.tar.gz
bnewnet-a891065a0447396a89fd03e4f038ca2e996a68aa.zip
fixed tree browsing in git_browse, and diff output for commits
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'