From: jaseem abid Date: Sun, 06 May 2012 19:18:35 GMT Subject: Re: Arguments to git hooks Message-ID: In-Reply-To: <20120506191202.GB5725@moj> On Mon, May 7, 2012 at 12:42 AM, Marcus Karlsson wrote: > As far as I can see that's the only argument that git-commit passes on > to the commit-msg hook. Can't you just call something like git-status > from the hook or do you need the information passed specifically as an > argument? I can always get last commit from `.git/COMMIT_EDITMSG'` - a fixed file. Isn't passing that as an argument a bit pointless? I want files I tried to commit specifically passed in as an argument. Are you suggesting me to run some plumbing command, parse the result and get the required data ? Is there an easier way to get this done? -- Jaseem Abid http://jaseemabid.github.com