Preserve the reviewed tree while removing obsolete stacked branch history. Co-authored-by: chengyongru <chengyongru.ai@gmail.com>