From 303ffc868266400a518602d2e9e9285361029cb2 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Mon, 19 Nov 2007 07:14:20 -0800 Subject: changed logging to be far more efficient if you're accessing all the commit objects --- camping/gitweb.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camping') diff --git a/camping/gitweb.rb b/camping/gitweb.rb index 6322e17..8ecb0e6 100644 --- a/camping/gitweb.rb +++ b/camping/gitweb.rb @@ -142,7 +142,7 @@ module GitWeb::Controllers @git = Git.bare(@repo.path) @tree1 = tree1 @tree2 = tree2 - @diff = @git.diff(tree1, tree2) + @diff = @git.diff(tree2, tree1) render :diff end end @@ -255,7 +255,7 @@ module GitWeb::Views @commit.parents.each do |p| code { a p.sha, :href => R(Commit, @repo, p.sha) } span.space ' ' - a 'diff', :href => R(DiffTwo, @repo, p.sha, @commit.sha) + a 'diff', :href => R(Diff, @repo, p.sha, @commit.sha) span.space ' ' a 'archive', :href => R(Archive, @repo, p.gtree.sha) br -- cgit