gitmatch is a program that tries to match its first parameter (the file name) against some patterns, returning the number of the pattern that matches. gitmatch is called by the gitaction/.gitaction scripts and was not designed to be used as a stand alone program.
See section Configuration Files, See section git, See section gitps, See section gitview, See section gitcmp, See section gitkeys, See section gitmount, See section gitredir, See section gitaction, See section .gitaction.