Updated
search git history for regex pattern matches across all objects and working tree files, scanning blobs, commit messages, tag annotations, and trailers with optional scope filtering and commit range selection
#safegit scan
search git history for regex pattern matches across all objects and working tree files, scanning blobs, commit messages, tag annotations, and trailers with optional scope filtering and commit range selection
Effect: read_only
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--pattern | str | regular expression pattern to search for across all objects in history | |||
--scope | str | glob pattern limiting which blob file paths are included (e.g. '.env', 'config/*') | |||
--from | str | first commit hash to include when scanning history (mutually exclusive with --entire-history) | |||
--entire-history | bool | scan all commits from the root of the repository to HEAD (mutually exclusive with --from) | |||
--target | str | comma-separated list of match types to include: blobs,commits,tags,trailers,files (default: all) |