safegit v0.26.0 /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

#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

Flags
NameShortTypeDefaultEnvDescription
--patternstrregular expression pattern to search for across all objects in history
--scopestrglob pattern limiting which blob file paths are included (e.g. '.env', 'config/*')
--fromstrfirst commit hash to include when scanning history (mutually exclusive with --entire-history)
--entire-historyboolscan all commits from the root of the repository to HEAD (mutually exclusive with --from)
--targetstrcomma-separated list of match types to include: blobs,commits,tags,trailers,files (default: all)
Search