Documentation ¶
Index ¶
- func EnsureGitCheckout(ctx context.Context, dest string, rs types.RepoState) (git.Checkout, error)
- func EnsureGitCheckoutWithDEPS(ctx context.Context, workdir string, rs types.RepoState) (co git.Checkout, err error)
- func GetRepoState(f *Flags) (types.RepoState, error)
- func ValidateCheckout(ctx context.Context, dest string, rs types.RepoState) (bool, error)
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureGitCheckout ¶
EnsureGitCheckout obtains a clean git checkout of the given repo, at the given commit, in the given destination dir.
func EnsureGitCheckoutWithDEPS ¶
func EnsureGitCheckoutWithDEPS(ctx context.Context, workdir string, rs types.RepoState) (co git.Checkout, err error)
EnsureGitCheckoutWithDEPS obtains a clean git checkout of the given repo, at the given commit, in the given workdir, and syncs the DEPS as well. The checkout itself will be a subdirectory of the workdir.
func GetRepoState ¶
GetRepoState creates a RepoState from the given Flags.
Types ¶
type Flags ¶
type Flags struct { PatchIssue *string PatchServer *string PatchSet *string Repo *string Revision *string }
Flags contains command-line flags used by this package.
func SetupFlags ¶
SetupFlags initializes command-line flags used by this package. If a FlagSet is not provided, then these become top-level CommandLine flags.
Click to show internal directories.
Click to hide internal directories.