Method: Cir::GitRepository#remove_file

Defined in:
lib/cir/git_repository.rb

#remove_file(file) ⇒ Object

Remove given file from the repository. The path must have the same characteristics as it have for #add_file method.



51
52
53
54
# File 'lib/cir/git_repository.rb', line 51

def remove_file(file)
  index = @repo.index
  index.remove file
end