Bacterial genomics of plant adaptation