From a891065a0447396a89fd03e4f038ca2e996a68aa Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 8 Aug 2007 02:55:48 -0400 Subject: fixed tree browsing in git_browse, and diff output for commits --- bn_django/git_wiki/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bn_django/git_wiki') 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' -- cgit v1.2.3