Emit identical message on build as before, removing confusion reported in #475

This commit is contained in:
Thomas Reynolds 2012-06-17 12:11:07 -07:00
parent 5071a2c15d
commit 5da63cb84f

View file

@ -265,7 +265,11 @@ end
# Quiet down create file
class ::Thor::Actions::CreateFile
def on_conflict_behavior(&block)
say_status :create, :green
block.call unless pretend?
if identical?
say_status :identical, :blue
else
say_status :create, :green
block.call unless pretend?
end
end
end