Ported to gittle.