I will add some function for this in git.el later.