Better method for determining commit history.