Skip to content

class Grits::Index
inherits Reference #

Included modules

Grits::Mixins::Pointable Grits::Mixins::Util

Constructors#

.new(raw : LibGit::Index, repo : Grits::Repo)#

Methods#

#add(path : String) : Void#

#add(paths : Array(String), flags : Array(IndexAddOption) = [] of IndexAddOption, ¬ification_callback : String, String -> Bool | Nil)#

#add_file(path : String) : Void#

#add_files(path_expressions : Array(String), flags : Array(IndexAddOption) = [] of IndexAddOption, ¬ification : String, String -> Bool | Nil)#

#clear : Nil#

#diff_workdir(options = DiffOptions.default) : Diff#

#diff_workdir(options = DiffOptions#

#free#

#has_conflicts? : Bool#

#read_tree(tree : Tree)#

#write : Bool#

#write_tree#

#write_tree#