src: save progress on branching