Documentation ¶ Index ¶ func Add(paths []string) error func Commit(w io.Writer, option *CommitOption) error func Init(w io.Writer, root string) error func Log(w io.Writer, oid common.Hash, option *LogOption) error func Remove(paths []string, option *RemoveOption) error type CommitOption type LogOption type RemoveOption Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Add ¶ func Add(paths []string) error Add file to repository and add index to stage area func Commit ¶ func Commit(w io.Writer, option *CommitOption) error func Init ¶ func Init(w io.Writer, root string) error Init func Log ¶ func Log(w io.Writer, oid common.Hash, option *LogOption) error func Remove ¶ func Remove(paths []string, option *RemoveOption) error Types ¶ type CommitOption ¶ type CommitOption struct { Message string } type LogOption ¶ type LogOption struct { Stat bool } type RemoveOption ¶ type RemoveOption struct { Recursive bool } Source Files ¶ View all Source files add.go commit.go initrepository.go log.go remove.go Click to show internal directories. Click to hide internal directories.