The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Code Comparison

Last updated: 2024-09-05 16:13:04

This article provides a detailed introduction on how to use the code comparison feature.

Operation step

1. Log in to CODING Console, click the team domain name to enter the CODING page.
2. Click Item on the left side of the team homepage to enter the project list page and select the target project.
3. In the menu on the left, select Code Repository to enter the code repository homepage.
4. Enter the specified code repository, then click Branch, Tag, or Revision Version (hash value) to go to the corresponding page.

5. On the corresponding page, click

and select Compare.
For the branch list, select a specified branch, click

and select Compare.

For the tag list, select a specified tag, click

and select Compare.

If you have entered the specified revision version (hash value), click

in the upper-right corner and select Compare

6. In the code comparison page, select the corresponding branch, tag, or revision version for comparison.


Feature Overview

To ensure web page responsiveness, you cannot use the Expand All feature if there are differences in more than 20 files.
The code comparison feature essentially provides an online graphical representation of the git diff command. If the Difference from Common Ancestor option is selected, it will show the differences between the source branch and the common ancestor.

If the Difference from Common Ancestor option is not selected, it will directly show the comparison between the source branch and the target branch.