summaryrefslogtreecommitdiffstats
path: root/camping/gitweb.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-19 07:14:20 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-19 07:14:20 -0800
commit303ffc868266400a518602d2e9e9285361029cb2 (patch)
tree62ef43fd48df23b55e01733a88fc13f616cf615f /camping/gitweb.rb
parentf64d5462fa5323fc81387f79eebe9e1ae9eb0b08 (diff)
downloadthird_party-ruby-git-303ffc868266400a518602d2e9e9285361029cb2.tar.gz
third_party-ruby-git-303ffc868266400a518602d2e9e9285361029cb2.tar.xz
third_party-ruby-git-303ffc868266400a518602d2e9e9285361029cb2.zip
changed logging to be far more efficient if you're accessing all the commit objects
Diffstat (limited to 'camping/gitweb.rb')
-rw-r--r--camping/gitweb.rb4
1 files changed, 2 insertions, 2 deletions
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