respect git process error code
remove unused function
group commits by JIRA issues
fetch a JIRA issue only once