linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git + checkpatch.pl?
@ 2007-11-30 15:18 Kumar Gala
  2007-11-30 15:23 ` Alexey Dobriyan
  2007-11-30 15:28 ` Dave Jones
  0 siblings, 2 replies; 4+ messages in thread
From: Kumar Gala @ 2007-11-30 15:18 UTC (permalink / raw)
  To: linux-kernel

Does any know if there is a way to run checkpatch.pl over the index  
before one does a commit?

- k

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git + checkpatch.pl?
  2007-11-30 15:18 git + checkpatch.pl? Kumar Gala
@ 2007-11-30 15:23 ` Alexey Dobriyan
  2007-11-30 15:28 ` Dave Jones
  1 sibling, 0 replies; 4+ messages in thread
From: Alexey Dobriyan @ 2007-11-30 15:23 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linux-kernel

On 11/30/07, Kumar Gala <galak@kernel.crashing.org> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git + checkpatch.pl?
  2007-11-30 15:18 git + checkpatch.pl? Kumar Gala
  2007-11-30 15:23 ` Alexey Dobriyan
@ 2007-11-30 15:28 ` Dave Jones
  2007-11-30 15:41   ` Kumar Gala
  1 sibling, 1 reply; 4+ messages in thread
From: Dave Jones @ 2007-11-30 15:28 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git + checkpatch.pl?
  2007-11-30 15:28 ` Dave Jones
@ 2007-11-30 15:41   ` Kumar Gala
  0 siblings, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2007-11-30 15:41 UTC (permalink / raw)
  To: Dave Jones; +Cc: linux-kernel


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-30 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-30 15:18 git + checkpatch.pl? Kumar Gala
2007-11-30 15:23 ` Alexey Dobriyan
2007-11-30 15:28 ` Dave Jones
2007-11-30 15:41   ` Kumar Gala

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).