git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Arguments to git hooks
@ 2012-05-06 18:35 jaseem abid
  2012-05-06 19:12 ` Marcus Karlsson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: jaseem abid @ 2012-05-06 18:35 UTC (permalink / raw)
  To: git mailing list

Hello all,

I am trying to write a hook '.git/hooks/commit-msg' to be run before
every commit.

How can I pass arguments to the script? Now by default the only arg I
am getting is `.git/COMMIT_EDITMSG'`. I would love to get the list of
files I tried to commit also into the script so that I can run a lint
program on it before committing it. How can I get this done?

V/r,

--
Jaseem Abid
http://jaseemabid.github.com

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

end of thread, other threads:[~2012-05-14 20:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-06 18:35 Arguments to git hooks jaseem abid
2012-05-06 19:12 ` Marcus Karlsson
2012-05-06 19:18   ` jaseem abid
2012-05-06 21:11     ` Marcus Karlsson
2012-05-06 21:40       ` jaseem abid
2012-05-07  7:21         ` Jeff King
2012-05-07  7:15 ` Jeff King
2012-05-07 22:17 ` Andrew Sayers
2012-05-14 20:34   ` jaseem abid

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