{"modulePath":"github.com/wx-chevalier/go-utils","version":"v0.0.0-20210220143244-c4d1043c3b71","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commitutils\n\n## Variables\n\n```go\nvar (\n\tRefNotSetError           = errors.Errorf(\"Must initialize with set ref before updating files.\")\n\tRefAlreadySetError       = errors.Errorf(\"Ref was already set.\")\n\tCouldNotFindFileToRename = func(oldPath string) error {\n\t\treturn errors.Errorf(\"Could not find file %s in tree\", oldPath)\n\t}\n)\n```\n\n## Types\n\n```go\ntype CommitSpec struct {\n\tName    string\n\tEmail   string\n\tMessage string\n}\n```\n\n```go\ntype RefUpdater interface {\n\tSetRef(ctx context.Context, ref *github.Reference) error\n\tUpdateFile(ctx context.Context, path string, contentUpdater func(string) string) error\n\tRenameFile(ctx context.Context, oldPath, newPath string) error\n\tCommit(ctx context.Context, spec CommitSpec) error\n\tCode(ctx context.Context) (vfsutils.MountedRepo, error)\n}\n```\n\n```go\nfunc NewGithubRefUpdater(client *github.Client, owner, repo string) RefUpdater\n```\n\n","path":"github.com/wx-chevalier/go-utils/githubutils/commitutils","name":"commitutils","synopsis":"","isRedistributable":true}
