commit.c: make compare_commits_by_commit_date global