기술 자료

Unity Version Control

Navigate code reviews

Find the files, comments, and changesets in a Unity Version Control code review in the Unity Dashboard.
읽는 시간 3분최근 업데이트: 8일 전

Use a code review in the Unity Dashboard to read the comments on the review, check the changes to each file, and view the changesets that the review includes. A code review has three tabs: Conversation, Changed Files, and Changesets.

Open a code review

To open a code review:
  1. Open the repository.
  2. Select the Code reviews tab.
  3. Select the code review.

View files

The Changed Files tab lists the files that the code review changes, and displays a side-by-side diff of each file. The Changed Files tab toolbar shows the number of changed files and the number of comments.
To view the changes in one changeset of the review, select the changeset in Changeset.

Find files

To find files in the Changed Files tab, use the following options:
  • Search by file or folder name.
  • Filter by file type with Type.
  • Filter by Action: Added, Changed, Deleted, or Moved.
  • Switch between a tree view and a list view of the files.
To move between files, select the arrows next to the number of files in the toolbar.

Change how diffs display

The Changed Files tab can display the following types of diff:

Diff type

Description

Text diffCompares the files line by line.
Semantic diffCompares the structure of the code. Letters next to the code show which code elements changed (C), were added (A), or were deleted (D).
To switch between the diff types, select Text diff or Semantic diff.
To change other diff settings, select the gear icon to open the Display settings dialog. The dialog has the following settings:

Setting

Description

Group changes by merge sourceSeparates the changes that come from a rebase or merge source.
Text comparison methodSets which differences the diff ignores: Ignore End of lines (EOLs), Ignore whitespaces, or Ignore EOLs and whitespaces. To show all differences, select Recognize all.

View comments

The Conversation tab lists all the comments on the code review, including the questions and change requests on specific lines of code.
To view a question or change request next to the code it refers to:
  1. In the Changed Files tab toolbar, select the comments list, which shows the number of comments.
  2. Select the comment you want to view.
If a change request is unresolved, the code review shows an Unresolved button. To go to the unresolved comments, select Unresolved.

View changesets

The Changesets tab lists the changesets in the code review, grouped by date. Each changeset shows its number, comment, author, and branch.
You can do the following tasks in the Changesets tab:

Task

How

View the details of a changeset, such as its GUID, other code reviews, labels, merge details, and attributesSelect the expand arrow next to the changeset.
Add or change the attributes of a changesetExpand the changeset, then select Edit or add attributes.
Move between pages of changesetsSelect Previous or Next.

Additional resources