{"modulePath":"github.com/caoychn/CodeGPT","version":"v0.0.0-20240929101700-ccf36c28f8b8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\n## Constants\n\n```go\nconst (\n\tHookPrepareCommitMessageTemplate = \"prepare-commit-msg\"\n\tCommitMessageTemplate            = \"commit-msg.tmpl\"\n)\n```\n\n## Types\n\n```go\ntype Command struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(opts ...Option) *Command\n```\n\n```go\nfunc (c *Command) Commit(val string) (string, error)\n```\n\n```go\nfunc (c *Command) DiffFiles() (string, error)\n```\nDiff compares the differences between two sets of data. It returns a string representing the differences and an error. If there are no differences, it returns an empty string and an error.\n\n```go\nfunc (c *Command) GitDir() (string, error)\n```\nGitDir to show the (by default, absolute) path of the git directory of the working tree.\n\n```go\nfunc (c *Command) InstallHook() error\n```\n\n```go\nfunc (c *Command) UninstallHook() error\n```\n\n```go\ntype Option interface {\n\t// contains filtered or unexported methods\n}\n```\nOption is an interface that specifies instrumentation configuration options.\n\n```go\nfunc WithDiffUnified(val int) Option\n```\nWithDiffUnified is a function that generate diffs with \\\u003cn\u003e lines of context instead of the usual three.\n\n```go\nfunc WithEnableAmend(val bool) Option\n```\nWithEnableAmend returns an Option that sets the isAmend field of a config object to the given value.\n\n```go\nfunc WithExcludeList(val []string) Option\n```\nWithExcludeList returns an Option that sets the excludeList field of a config object to the given value.\n\n","path":"github.com/caoychn/CodeGPT/git","name":"git","synopsis":"","isRedistributable":true}
