mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Prettier print
This commit is contained in:
4
Rakefile
4
Rakefile
@@ -53,7 +53,8 @@ namespace :benchmark do
|
|||||||
Rake::Task["benchmark:index"].execute(:commit => reference)
|
Rake::Task["benchmark:index"].execute(:commit => reference)
|
||||||
|
|
||||||
# Create tmp branch for compare commit
|
# Create tmp branch for compare commit
|
||||||
puts "Creating branch tmp_#{compare}"
|
puts ""
|
||||||
|
puts "Creating temporary branch tmp_#{compare}"
|
||||||
git.branch("tmp_#{compare}").checkout
|
git.branch("tmp_#{compare}").checkout
|
||||||
git.reset_hard(compare)
|
git.reset_hard(compare)
|
||||||
|
|
||||||
@@ -71,6 +72,7 @@ namespace :benchmark do
|
|||||||
|
|
||||||
compare_classifications = JSON.parse(File.read("benchmark/results/#{compare}_output.json"))
|
compare_classifications = JSON.parse(File.read("benchmark/results/#{compare}_output.json"))
|
||||||
|
|
||||||
|
puts "Changes between #{reference}...#{compare}"
|
||||||
puts reference_classifications.deep_diff(compare_classifications)
|
puts reference_classifications.deep_diff(compare_classifications)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user