mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 12:28:47 +00:00
@@ -23,7 +23,7 @@ class GitLinguist
|
|||||||
if @incremental && stats = load_language_stats
|
if @incremental && stats = load_language_stats
|
||||||
old_commit_oid, old_stats = stats
|
old_commit_oid, old_stats = stats
|
||||||
|
|
||||||
# A cache with NULL oid means that we want to froze
|
# A cache with NULL oid means that we want to freeze
|
||||||
# these language stats in place and stop computing
|
# these language stats in place and stop computing
|
||||||
# them (for performance reasons)
|
# them (for performance reasons)
|
||||||
return old_stats if old_commit_oid == NULL_OID
|
return old_stats if old_commit_oid == NULL_OID
|
||||||
@@ -111,7 +111,7 @@ def git_linguist(args)
|
|||||||
parser.parse!(args)
|
parser.parse!(args)
|
||||||
|
|
||||||
git_dir = `git rev-parse --git-dir`.strip
|
git_dir = `git rev-parse --git-dir`.strip
|
||||||
raise "git-linguist must be ran in a Git repository (#{Dir.pwd})" unless $?.success?
|
raise "git-linguist must be run in a Git repository (#{Dir.pwd})" unless $?.success?
|
||||||
wrapper = GitLinguist.new(git_dir, commit, incremental)
|
wrapper = GitLinguist.new(git_dir, commit, incremental)
|
||||||
|
|
||||||
case args.pop
|
case args.pop
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
# in the statistics as the parent language.
|
# in the statistics as the parent language.
|
||||||
#
|
#
|
||||||
# Any additions or modifications (even trivial) should have corresponding
|
# Any additions or modifications (even trivial) should have corresponding
|
||||||
# test change in `test/test_blob.rb`.
|
# test changes in `test/test_blob.rb`.
|
||||||
#
|
#
|
||||||
# Please keep this list alphabetized. Capitalization comes before lowercase.
|
# Please keep this list alphabetized. Capitalization comes before lowercase.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user