Call ->diff on the Commit instance.
[catagits/Gitalist.git] / lib / Gitalist / Controller / Ref.pm
index 207d4ca..ddaabe6 100644 (file)
@@ -14,9 +14,7 @@ sub base : Chained('/repository/find') PathPart('') CaptureArgs(0) {}
 after commit => sub {
   my($self, $c) = @_;
 
-  $c->stash->{diff_tree} = ($c->stash->{Repository}->diff(
-    commit => $c->stash->{Commit},
-  ))[0];
+  $c->stash->{diff_tree} = ( $c->stash->{Commit}->diff )[0];
 };
 
 sub raw : Chained('find') Does('FilenameArgs') Args() {