Skip to content

A command line utility to check edited git-tracked files for blacklisted patterns

Notifications You must be signed in to change notification settings

amjerm/nocommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nocommit

A command line utility to search for the word "nocommit" in git-staged files.

Features

  • case-insensitive
  • prints match count and location of each match
  • option to search full diff with HEAD instead of only staged files
  • option to restrict search path

Planned Features

  • option to specify alternative strings to search for
  • publishing on both crates.io and npm for easy inclusion as a pre-commit hook

Usage

Clone this repository and run cargo build --release, then run it as ./target/release/nocommit or copy it to your local bin directory.

Usage: nocommit [OPTIONS]

Options:
  -a, --all-files                  Search unstaged files as well
  -p, --search-path <SEARCH_PATH>  Path to restrict search to
  -h, --help                       Print help

About

A command line utility to check edited git-tracked files for blacklisted patterns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages