We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Git.status
1 parent 6612438 commit 577db1eCopy full SHA for 577db1e
Gemfile
@@ -2,4 +2,3 @@ source 'https://rubygems.org'
2
3
gemspec :name => 'git'
4
5
-gem 'git', path: '.'
lib/git/status.rb
@@ -85,8 +85,10 @@ def construct_status
85
86
# find untracked in working dir
87
Dir.chdir(@base.dir.path) do
88
- Dir.glob('**/*') do |file|
89
- @files[file] = {:path => file, :untracked => true} unless @files[file] || File.directory?(file) || ignore.include?(file)
+ Dir.glob('**/*', File::FNM_DOTMATCH) do |file|
+ next if @files[file] || File.directory?(file) || ignore.include?(file) || file =~ /^.git\/.+/
90
+
91
+ @files[file] = {:path => file, :untracked => true}
92
end
93
94
0 commit comments