vcs

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenRepository added in v0.6.0

func OpenRepository(startDir, toplevelDir string) (repo *git.Repository, err error)

OpenRepository opens a repository in startDir checking every parent dir until topLevelDir

func ProbeDirForVCSUrl

func ProbeDirForVCSUrl(startDir, toplevelDir string) (string, error)

Given a starting directory and toplevel directory, work backwards to the toplevel directory and probe for a Git repository, returning the origin URI if known.

func ProbeDirFromPath

func ProbeDirFromPath(startingPath string) (string, error)

Given a starting directory, work backwards to the current working directory and probe for a Git repository, returning the origin URI if known.

Types

This section is empty.

Jump to

Keyboard shortcuts

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