Most Xcode files have a human-readable diff now!

This commit is contained in:
Josh Abernathy
2014-07-15 12:06:55 -07:00
committed by Arfon Smith
parent 963c0b46a0
commit 3f14d15722

View File

@@ -54,7 +54,7 @@ module Linguist
name == 'Gemfile.lock' || name == 'Gemfile.lock' ||
minified_files? || minified_files? ||
compiled_coffeescript? || compiled_coffeescript? ||
xcode_project_file? || xcode_file? ||
generated_parser? || generated_parser? ||
generated_net_docfile? || generated_net_docfile? ||
generated_net_designer_file? || generated_net_designer_file? ||
@@ -67,14 +67,14 @@ module Linguist
generated_by_zephir? generated_by_zephir?
end end
# Internal: Is the blob an XCode project file? # Internal: Is the blob an Xcode file?
# #
# Generated if the file extension is an XCode project # Generated if the file extension is an Xcode
# file extension. # file extension.
# #
# Returns true of false. # Returns true of false.
def xcode_project_file? def xcode_file?
['.xib', '.nib', '.storyboard', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname) ['.nib', '.pbxproj'].include?(extname)
end end
# Internal: Is the blob minified files? # Internal: Is the blob minified files?