repo

package
v0.28.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineChanges

func DetermineChanges(dir string, oldCommit string, newCommit string) ([]string, error)

func IsInRepo

func IsInRepo(dir string, name string) bool

IsInRepo determines if the provided directory is in the provided git repository. Git repositories can be named differently on a local clone then the remote. In addition, a git repo can have multiple remotes. In practice though, the business logic question is something like: "Am I in the community repo?". To answer that, this function iterates over the remotes and if any of them have the same name as the one requested, it returns true. Any other case returns false.

func RepoRoot

func RepoRoot(dir string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL