All persons who, at the time when such repeal takes effect, shall hold any office under any of the acts hereby repealed, shall continue to hold the same according to the tenure thereof, except those offices which may have been abolished, and those as to which a different provision is made by this Code.
Va. Code § 1-5