File Version Comparison
File version comparison can compare differences between different versions of a file, clearly showing the differences between two file versions, including added, deleted, or modified parts. This helps:
- Developers view code changes during code review to ensure code quality and logical correctness.
- Quickly locate the source of changes when a bug or issue is introduced by comparing versions.
- In collaborative environments, it helps identify conflicting sections and manually resolve them.
Performing File Version Comparison
-
First, enter the project code details page and click "Compare" to enter the comparison page.
-
On the comparison page, you can select two different versions of the file for comparison, including versions between different branches, commits, or tags. The comparison result will display commit information between the two versions and show detailed file differences below. Modified lines are marked with different colors, with new lines displayed in green and deleted lines highlighted in red, making it easy to quickly identify change content.