xref: /titanic_50/usr/src/tools/scripts/git-pbchk.1onbld (revision b3700b074e637f8c6991b70754c88a2cfffb246b)
t

This file and its contents are supplied under the terms of the
Common Development and Distribution License ("CDDL"), version 1.0.
You may only use this file in accordance with the terms of version
1.0 of the CDDL.

A full copy of the text of the CDDL should have accompanied this
source. A copy of the CDDL is also available via the Internet at
http://www.illumos.org/license/CDDL.


Copyright 2011 Richard Lowe.
Copyright 2015 Elysium Digital, L.L.C.

"GIT-PBCHK" "1ONBLD" "April 23, 2015" "" ""
"NAME"
git-pbchk - nits and pre-putback checks for git
"SYNOPSIS"
git-pbchk [-b branch]

git-nits [-b branch]

"DESCRIPTION"
Check your workspace for common nits and putback-ending mistakes, a simple set of checks are run over various parts of your workspace and errors encountered are reported, all of which should, generally, be fixed\.

Comment format Check that putback comments follow the prescribed format (only run for pbchk)

Copyrights Check that each source file contains a copyright notice for the current year\. You don't need to fix this if you, the potential new copyright holder, chooses not to

C style Check that C source files conform to the Illumos C style rules

Header check Check that C header files conform to the Illumos header style rules (in addition to the general C rules)

Java style Check that Java source files conform to the Illumos Java style rules (which differ from the traditionally recommended Java style)

SCCS Keywords Check that no source files contain unexpanded SCCS keywords\. It is possible that this check may false positive on certain inputs\. It is generally obvious when this is the case\.

This check does not check for expanded SCCS keywords, though the common \'ident\'-style lines should be removed regardless of whether they are expanded\.

Mapfile check Check that linker mapfiles contain a comment directing anyone editing to read the directions in usr/lib/README\.mapfiles\.

"OPTIONS"

-b branch:

Compare the current workspace to /branch/ for the purposes of generating file and comment lists\.
If this option is not specified an attempt is made to determine this automatically, if the git branch configuration contains this information\.
If no branch is specified and none can be determined automatically origin/master is used\.
"FILES"
git nits and git pbchk support NOT files of the form used by Cadmium with Mercurial\. These are looked for in $CODEMGR_WS/\.git/ and in $CODEMGR_WS/exception_lists/ as normal\. The files are named after the check from which they exclude files\.
"\(bu" 4
copyright\.NOT: exclude files listed from copyright checking
"\(bu" 4
cstyle\.NOT: exclude files from the C style check
"\(bu" 4
hdrchk\.NOT: exclude files from the C header style check
"\(bu" 4
keywords\.NOT: exclude files from the SCCS keywords check
"\(bu" 4
mapfilechk\.NOT: exclude files from the linker mapfile check
"" 0