CPC G06F 8/65 (2013.01) | 20 Claims |
1. A code updating method, comprising:
acquiring a target character string, wherein the target character string is a common code of source codes of at least two products, first line spacings in the source codes of the at least two products are the same, and each of the first line spacings is a spacing between a line where the target character string is located and a first line of codes to be modified;
matching the target character string with source codes of a first product, and taking a line where a character string, that matches the target character string, in the first product is located as a first line of first target codes of the first product; wherein the first product is one of the at least two products, and the first target codes at least further comprise the codes to be modified and codes between the first line and the codes to be modified;
generating a patch file for the first target codes of the first product; and
respectively applying the patch file to the first target codes of the at least two products.
|