latest commit functionality