LOSSLESS BI-DIRECTIONAL FORMATTING OF PROGRAM SOURCE CODE
First Claim
1. A computer-implemented method, comprising:
- obtaining, by one or more processors of a host, from a client, via a communication connection over a network, a request to commit a modified version of program source code to a repository administered by the host;
identifying, by the one or more processors, formatting in the modified version implemented by an editor executing on the client;
removing, by the one or more processors, the identified formatting from the modified version;
transforming, by the one or more processors, the modified version into a first storage structure comprising content of the modified version without the identified formatting, wherein the first storage structure comprises a canonical internal representation;
identifying, by the one or more processors, one or more differences between the first storage structure representing the modified version and a second storage structure, wherein the second storage structure comprises an unmodified version of the program source code stored in the repository; and
storing, by the one or more processors, the one or more differences in the repository.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, computer program product, and system includes a processor(s) of a host obtaining, from a client, via a communication connection over a network, a request to commit a modified version of program source code to a repository administered by the host. The processor(s) identify formatting in the modified version implemented by an editor executing on the client and remove the formatting. The processor(s) transform the modified version into a first storage structure that includes content of the modified version without the identified formatting. The processor(s) identify one or more differences between the first storage structure representing the modified version and a second storage structure (an unmodified version of the program source code stored in the repository). The processor(s) store the one or more differences in the repository.
-
Citations
20 Claims
-
1. A computer-implemented method, comprising:
-
obtaining, by one or more processors of a host, from a client, via a communication connection over a network, a request to commit a modified version of program source code to a repository administered by the host; identifying, by the one or more processors, formatting in the modified version implemented by an editor executing on the client; removing, by the one or more processors, the identified formatting from the modified version; transforming, by the one or more processors, the modified version into a first storage structure comprising content of the modified version without the identified formatting, wherein the first storage structure comprises a canonical internal representation; identifying, by the one or more processors, one or more differences between the first storage structure representing the modified version and a second storage structure, wherein the second storage structure comprises an unmodified version of the program source code stored in the repository; and storing, by the one or more processors, the one or more differences in the repository. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer program product comprising:
a computer readable storage medium readable by one or more processors and storing instructions for execution by the one or more processors for performing a method comprising; obtaining, by the one or more processors of a host, from a client, via a communication connection over a network, a request to commit a modified version of program source code to a repository administered by the host; identifying, by the one or more processors, formatting in the modified version implemented by an editor executing on the client; removing, by the one or more processors, the identified formatting from the modified version; transforming, by the one or more processors, the modified version into a first storage structure comprising content of the modified version without the identified formatting, wherein the first storage structure comprises a canonical internal representation; identifying, by the one or more processors, one or more differences between the first storage structure representing the modified version and a second storage structure, wherein the second storage structure comprises an unmodified version of the program source code stored in the repository; and storing, by the one or more processors, the one or more differences in the repository. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
20. A system comprising:
-
a memory; one or more processors in communication with the memory; and program instructions executable by the one or more processors via the memory to perform a method, the method comprising; obtaining, by the one or more processors of a host, from a client, via a communication connection over a network, a request to commit a modified version of program source code to a repository administered by the host; identifying, by the one or more processors, formatting in the modified version implemented by an editor executing on the client; removing, by the one or more processors, the identified formatting from the modified version; transforming, by the one or more processors, the modified version into a first storage structure comprising content of the modified version without the identified formatting, wherein the first storage structure comprises a canonical internal representation; identifying, by the one or more processors, one or more differences between the first storage structure representing the modified version and a second storage structure, wherein the second storage structure comprises an unmodified version of the program source code stored in the repository; and storing, by the one or more processors, the one or more differences in the repository.
-
Specification