Does any know if there is a way to run checkpatch.pl over the index
before one does a commit?
- k
On 11/30/07, Kumar Gala <[email protected]> wrote:
> Does any know if there is a way to run checkpatch.pl over the index
> before one does a commit?
Something like .git/hooks/pre-commit hook should work.
Alexey, who never used it.
On Fri, Nov 30, 2007 at 09:18:59AM -0600, Kumar Gala wrote:
> Does any know if there is a way to run checkpatch.pl over the index
> before one does a commit?
git diff | scripts/checkpatch.pl
?
Dave
--
http://www.codemonkey.org.uk
On Nov 30, 2007, at 9:28 AM, Dave Jones wrote:
> On Fri, Nov 30, 2007 at 09:18:59AM -0600, Kumar Gala wrote:
>> Does any know if there is a way to run checkpatch.pl over the index
>> before one does a commit?
>
> git diff | scripts/checkpatch.pl
thanks. I think I want:
git-diff HEAD | scripts/checkpatch.pl --no-signoff -
but the general idea works. (need more sleep)
- k