implementantion of git log -p