Module: Patches::Git::Status
- Defined in:
- lib/git_ext.rb
Instance Method Summary collapse
Instance Method Details
#fetch_untracked ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/git_ext.rb', line 102 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 |