it might be an easy one but somehow I am not sure how to get my hands on 
it. I want to have a hook which checks the content of the a file and to 
decide whether to deny or accept the push by some validation on the 
content. how do I extract the content of the related files ? (bare repo of 

I know that git show <branch name>:<path> will do, but that is for the 
current objects in the repo. what I need are the pushed ones, before it's 
being applied.

thanks in advance.


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to