Method: Gitgo::Index#clear
- Defined in:
- lib/gitgo/index.rb
#clear ⇒ Object
Clears all index files, and the cache.
345 346 347 348 349 350 |
# File 'lib/gitgo/index.rb', line 345 def clear if File.exists?(path) FileUtils.rm_r(path) end reset end |