Thread (9 messages) flat view 9 messages, 4 authors, 2016-06-15

Re: Arguments to git hooks

From: jaseem abid <hidden>
Date: 2016-06-15 22:53:45

On Mon, May 7, 2012 at 12:42 AM, Marcus Karlsson [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help