Re: Arguments to git hooks
- From
jaseem abid <jaseemabid@gmail.com>
- Date
- May 6, 2012, 19:18 UTC
- Message-ID
- <CAH-tXsBpfXkr-qWdSBhPu6CcSZbm3f=3i1xJVtk6OkHz1NKCfA@mail.gmail.com>
- In-Reply-To
- <20120506191202.GB5725@moj>
On Mon, May 7, 2012 at 12:42 AM, Marcus Karlsson <mk@acc.umu.se> 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