{"modulePath":"github.com/raymondji/git-stack-cli","version":"v0.0.0-20250919023704-4e49b115724e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package libgit\n\n## Types\n\n```go\ntype Commit struct {\n\tDate          string\n\tSubject       string\n\tAuthor        string\n\tHash          string\n\tParentHashes  []string\n\tLocalBranches []string\n}\n```\n\n```go\ntype Git interface {\n\tValidateGitInstall() error\n\tIsRepoClean() (bool, error)\n\tGetRemote() (Remote, error)\n\tGetRootDir() (string, error)\n\tCommitFixup(commitHash string, add bool) (string, error)\n\tCommitEmpty(msg string) error\n\tGetMergedBranches(ref string) ([]string, error)\n\tGetCurrentBranch() (string, error)\n\tGetShortCommitHash(branch string) (string, error)\n\tPush(branchName string, opts PushOpts) (string, error)\n\tRebase(branch string, opts RebaseOpts) (string, error)\n\tCreateBranch(name string, startPoint string) error\n\tDeleteBranchIfExists(name string) error\n\tDeleteRemoteBranchIfExists(name string) error\n\tCheckout(name string) error\n\tLogAll(notReachableFrom string) (Log, error)\n\tLogOneline(from string, to string) error\n}\n```\n\n```go\nfunc New() Git\n```\n\n```go\ntype Log struct {\n\t// Commits are ordered from oldest to newest\n\tCommits []Commit\n}\n```\n\n```go\ntype PushOpts struct {\n\tForce           bool\n\tForceWithLease  bool\n\tForceIfIncludes bool\n\tNoVerify        bool\n}\n```\n\n```go\ntype RebaseOpts struct {\n\tInteractive bool\n\tAutosquash  bool\n\tKeepBase    bool\n\tUpdateRefs  bool\n}\n```\n\n```go\ntype Remote struct {\n\tKind    githost.Kind\n\tURLPath string // e.g. raymondji/git-stack-cli\n}\n```\n\n```go\ntype Upstream struct {\n\tRemote     string\n\tBranchName string\n}\n```\n\n","path":"github.com/raymondji/git-stack-cli/libgit","name":"libgit","synopsis":"","isRedistributable":true}
