Commit 87aba17e authored by Sean McGivern's avatar Sean McGivern
Browse files

Memoize diffs with path options set separately

parent 32e593c6
...@@ -46,7 +46,8 @@ def diffs(options={}) ...@@ -46,7 +46,8 @@ def diffs(options={})
compare.diffs(options) compare.diffs(options)
end end
else else
@diffs ||= load_diffs(st_diffs, options) @diffs ||= {}
@diffs[options[:paths]] ||= load_diffs(st_diffs, options)
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment