Complex sentence: Only "A" Company retained its camels, while the other companies had become infantry units.
Split into simpler sentences: Only "A" Company retained its camels. The other companies had become infantry units.