Use libgit2 to read reflog

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>