Module: Patches::Git::Status
- Defined in:
- lib/ext/git_ext.rb
Instance Method Summary collapse
Instance Method Details
#fetch_untracked ⇒ Object
108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/ext/git_ext.rb', line 108 def fetch_untracked ignore = @base.lib.ignored_files Dir.chdir(@base.dir.path) do Dir.glob('**/*', File::FNM_DOTMATCH) do |file| next if @files[file] || File.directory?(file) || ignore.include?(file) || file =~ %r{^.git\/.+} || file =~ %r{^(.*\/)?.gitkeep$} @files[file] = { path: file, untracked: true } end end end |