gl_get_commits function

Get commits and diff from a project repository