Whenever the charter of any incorporated municipality provides for a prior period of residency in the municipality as a qualification for the election or appointment of any person to any office or position in the municipal government, residence in territory which is afterwards annexed to the municipality shall be deemed residence within the municipality for the purpose of computing the period of residence to make one eligible to hold such office or position.
OCGA § 36-30-5