fork from http://anongit.kde.org/libqgit2