The amount of gas a super-Earth that formed in situ acquires may depend on when the planetary embryos merged due to giant impacts relative to the dissipation of the gas disk. If the mergers happen after the gas disk dissipates terrestrial planets can form, if in a transition disk a super-Earth with a gas envelope containing a few percent of its mass may form. If the mergers happen too early runaway gas accretion may occur leading to the formation of a gas giant. The mergers begin when the dynamical friction due to the gas disk becomes insufficient to prevent collisions, a process that will begin earlier in a higher metallicity disk. Alternatively gas accretion may be limited due to the envelopes not being in hydrostatic equilibrium, instead gas may flow through the envelope slowing its growth and delaying the onset of runaway gas accretion until the mass of the core reaches 15 Earth masses.