Skip to main content

Check model change differences

Overview

This helps you check the model change differences by comparing with previous commits managed by Git.

The steps for checking the model change differences are explained in the following order.

  • Display the commit log
  • Compare projects

Display the commit log

To display the commit log, follow the steps below.

Display the commit log

To display the commit log of a repository

Operation procedure
  1. Click [Git] > [Commit History] > [Repository Commit History] on the ribbon.
  2. The [Repository Commit History] dialog box appears, displaying a list of commit logs.
  3. You can filter the list of commit logs by specifying the start and end dates.

To view the commit log for a file

Operation procedure
  1. Select a model file in the model navigator or project navigator.

  2. Click [Git] > [Commit History] > [Commit History for File] on the ribbon.

  3. The [Commit History for Model File Displayed in Editor] dialog box appears, displaying a list of commit logs.

  4. To display the commit history for a period not displayed, specify the start and end dates and click the reload button.

Note
  • If you change the contents of a model file at the same time as changing its hierarchy or name, NDGit will not recognize it as the same file, so you may not be able to trace the commit history of the model file before it was moved, and you may not be able to check the change differences.

Compare projects

There are several ways to compare projects, as follows:

  • Compare with the last commit
  • Compare with a previous commit
  • Compare with a commit in another branch

The following explains how to select what to compare for each of the above.

Note
  • If there is a difference in the storage folder path of the model file, it will not be displayed as a difference.

Compare with the last commit

To compare with the last commit while editing a project registered in the configuration management repository, follow the steps below.

Compare with the last commit

Operation procedure
  1. On the ribbon, click [Git] > [Difference] > [Compare with the last commit].
  2. A comparison with the most recently committed project will start, and the differences will be displayed in the Model Navigator and Model Editor.

Compare with the previous commit

To compare with the previous commit while editing a project registered in the configuration management repository, follow the steps below.

Compare with a previous commit

Operation procedure
  1. Display the commit log. (More details here)

  2. Select the commit to compare.

  3. Click the following button for each type of commit log.

  • Repository commit log: [Show diff in editor] button

  • File commit log: [Show changes] button

  1. A comparison with the project of the selected commit will start, and the differences will be displayed.

Compare with a commit in another branch

To compare with a commit in another branch while editing a project registered in a configuration management repository, follow the steps below.

Compare with a commit in another branch

Operation procedure
  1. Display the commit log of the repository. (More info here)
  2. From the [Branch] combo box, select the branch that contains the commit you want to compare.
  3. Select the commit you want to compare and click the [Show Diff in Editor] button.
  4. The project of the selected commit will be compared and the differences will be displayed.
info