Documentation
¶
Overview ¶
Command namecheck scans text for client terms held outside the repository. It never prints a term, the matched text, or the line.
Usage:
namecheck [--staged | --msg FILE | --range REVS | --names | --history | --tag] [PATH...]
--range takes a list of revisions separated by white space, as git rev-list reads them, for example "SHA ^REMOTE_REF". --names scans each PATH argument as a name only, without reading a file, for branch and tag names.
--tag takes two arguments, a ref name and an object name. When the object is an annotated tag, or a chain of them, it scans each tag's tagger and message. An object of any other kind is left alone.
The hidden flag --C DIR runs the git-backed modes in DIR instead of the process's working directory. Tests use it so that parallel tests can each scan their own repository without changing the shared working directory.
A finding never quotes a term. Any path component that holds a match is printed as ***.
Exit codes are 0 when clean, 1 on CLIENT_NAME_FOUND, and 2 when the term list is unavailable (CLIENT_TERMS_UNAVAILABLE) or the usage is wrong.