Handle case when the current line has no commit history