Documentation ¶ Overview ¶ Package git provides utilities for detecting git repository information. Index ¶ func RepoName(ctx context.Context) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RepoName ¶ func RepoName(ctx context.Context) string RepoName returns the name of the current git repository. It runs "git rev-parse --show-toplevel" and returns the base directory name. If not inside a git repo, it falls back to the base name of the working directory. Types ¶ This section is empty. Source Files ¶ View all Source files detect.go Click to show internal directories. Click to hide internal directories.