David Aguilar <davvid@xxxxxxxxx> writes: > Teach check-header.sh to ensure that the first included header in .c > files is either git-compat-util.h, builtin.h, or cache.h. > > Ensure that common-cmds.h is only included by help.c. > > Move the logic into functions so that we can skip parts of the check. > > Signed-off-by: David Aguilar <davvid@xxxxxxxxx> > --- > This depends on my previous patch that adds check-header.sh. > ... > +check_headers () { > + for header in *.h ewah/*.h vcs-svn/*.h xdiff/*.h > + do > + check_header "$header" Hmmmm, doesn't check_header run "$@" as a command? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html