Update RevWalk to v0.19.0 and use shared_ptr.