encode commit format