revert: refactor code to find commit subject in find_commit_subject()