MCPcopy Create free account
hub / github.com/libgit2/git2go / RemoveMessage

Method RemoveMessage

repository.go:832–842  ·  view source on GitHub ↗

RemoveMessage removes git's prepared message.

()

Source from the content-addressed store, hash-verified

830
831// RemoveMessage removes git's prepared message.
832func (r *Repository) RemoveMessage() error {
833 runtime.LockOSThread()
834 defer runtime.UnlockOSThread()
835
836 cErr := C.git_repository_message_remove(r.ptr)
837 runtime.KeepAlive(r)
838 if cErr < 0 {
839 return MakeGitError(cErr)
840 }
841 return nil
842}
843
844type RepositoryItem int
845

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected