{"modulePath":"github.com/wloophq/wloop","version":"v0.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\nPackage git reads local checkouts with the git binary, as the planner asks.\n\n## Types\n\n```go\ntype Exec struct{}\n```\nExec runs git on the PATH.\n\n```go\nfunc (g Exec) CheckedOutAt(ctx context.Context, dir, branch string) (string, error)\n```\nCheckedOutAt is the worktree that has branch checked out; \"\" for none.\n\n```go\nfunc (g Exec) HasCommit(ctx context.Context, dir, oid string) (bool, error)\n```\nHasCommit says whether the object database of dir holds the commit.\n\n```go\nfunc (g Exec) IsAncestor(ctx context.Context, dir, ancestor, commit string) (bool, error)\n```\nIsAncestor says whether ancestor is reachable from commit; an unknown object is not an ancestor.\n\n```go\nfunc (g Exec) LocalBranchTip(ctx context.Context, dir, branch string) (string, error)\n```\nLocalBranchTip is the commit branch points at in dir; \"\" when there is no such branch.\n\n```go\nfunc (g Exec) Upstream(ctx context.Context, dir string) (string, error)\n```\nUpstream is the remote branch the checkout at dir pushes to; \"\" for none.\n\n","path":"github.com/wloophq/wloop/plugins/github/git","name":"git","synopsis":"Package git reads local checkouts with the git binary, as the planner asks.","isRedistributable":true}
