From: David Ahern <dsahern@gmail.com>
To: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf trace: Make command line arguments consistent with perf-record
Date: Tue, 20 Aug 2013 11:19:18 -0600 [thread overview]
Message-ID: <5213A516.9020103@gmail.com> (raw)
In-Reply-To: <20130820171118.GE8488@ghostprotocols.net>
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 -
next prev parent reply other threads:[~2013-08-20 17:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 14:47 [PATCH] perf trace: Make command line arguments consistent with perf-record David Ahern
2013-08-20 14:51 ` Arnaldo Carvalho de Melo
2013-08-20 16:22 ` David Ahern
2013-08-20 17:11 ` Arnaldo Carvalho de Melo
2013-08-20 17:19 ` David Ahern [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-08-19 17:04 David Ahern
2013-08-19 19:06 ` Arnaldo Carvalho de Melo
2013-08-20 14:19 ` David Ahern
2013-08-20 14:43 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5213A516.9020103@gmail.com \
--to=dsahern@gmail.com \
--cc=acme@ghostprotocols.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).