A git-based code line life cycle tracing method and electronic device
A life cycle and code line technology, which is applied in the Git-based code line life cycle traceability method and the field of electronic devices, can solve the problems of inability to directly obtain relevant data, inability to obtain code line life cycle data, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0036] In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
[0037] like figure 1 As shown, a flowchart of steps of a Git-based code line life cycle tracing method embodiment of the present invention may include the following steps:
[0038] Step 1, extract the information of each commit in the Git repository, including the ID of the commit, the ID of the parent commit, the author, time, description of the commit, and the code change content of the commit;
[0039] Example of code changes:
[0040]
[0041] In the example, the file abc.c is changed. According to the prompt of "@@-6,5+6,6@@", the content of the file displayed thereafter is 5 consecutive lines starting from the 6th line before the change, and starting from the 6th line after the change. For 6 consecutive lines, the + s...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

