If diverticulitis affects the transverse colon, part or all of it is removed and the colon is reattached.