Add changelog function to build changelog from git.