Re: [PATCH] perf trace: Make command line arguments consistent withperf-record

From: David Ahern
Date: Tue Aug 20 2013 - 13:19:25 EST


On 8/20/13 11:11 AM, Arnaldo Carvalho de Melo wrote:
grrrr... Added a check in the git pre-commit hook to remind me:

$ git commit -a
changing command line arguments. Did you update the man page?

Hey, post it somewhere, please! I'd like to use it too. :-)

$ cat .git/hooks/pre-commit
#!/bin/bash

git diff --cached | egrep -q 'OPT_'
if [ $? -eq 0 ]
then
git diff --cached | egrep -q '^diff.*tools/perf/Documentation'
if [ $? -ne 0 ]
then
echo "changing command line arguments. Did you update the man page?"
exit 1
fi
fi
exec git diff --cached | scripts/checkpatch.pl --no-signoff -q -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/