I just started playing around with git hooks using Ruby(as am more comfortable with ruby).
Can anyone tell me how to print all the staged file names? and can anyone tell me or give me a good resource where I can understand how will git search through the staged files and search for a particular text?