package
Version:
v1.1.4
Opens a new window with list of versions in this module.
Published: Nov 12, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrPermissionDenied = errors.New("permission denied")
ErrNotGitRepository = errors.New("not a git repository")
ErrHooksNotFound = errors.New("hooks directory not found")
ErrRemovalFailed = errors.New("removing hooks")
ErrUserCancelled = errors.New("operation cancelled by user")
)
Repository represents a Git repository
Scan finds Git repositories and returns those with custom hooksPath
Result tracks the outcome of removing hooksPath config
type Summary struct {
RepositoriesWithConfig int
ConfigsRemoved int
Results []Result
}
Summary contains the overall results of the clean operation
Clean removes hooksPath configuration from repositories
Source Files
¶
Click to show internal directories.
Click to hide internal directories.