Discover Packages
github.com/coilyco/umbra
pkg
scope
package
Version:
v0.246.0
Opens a new window with list of versions in this module.
Published: Oct 2, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package scope resolves cwd to its git toplevel for an audit record's
RepoRoot. Best-effort and forensic-only: outside a repo it yields "".
CWD returns the current working directory or empty on error. Lets callers
write scope.RepoRoot(scope.CWD()) without juggling the os.Getwd error.
RepoRoot returns the git toplevel of cwd, "" outside a repo. It walks the
filesystem: a `git` replacement on PATH intercepts `rev-parse`. teable umbra#7343.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.