Spotlight on Spira 6.7 - Integrated Source Code Difference Viewing | Inflectra

Spotlight on Spira 6.7 - Integrated Source Code Difference Viewing

November 10th, 2020 by inflectra

We are excited about the next release of Spira 6.7, due to be released in early December. As mentioned in the previous article on the new release, a key area of focus in this new release is improving the experience and functionality for developers and development teams. With that in mind, we have revamped the source code management module, and for the first time, there is now a native code difference viewing capability in Spira.

Accessing the Source Code Difference Viewer

If you are using the Developing > Commits page and click on a specific source code commit, there is a tab that displays the list of files and associated actions that were added/modified/deleted in that commit:

If you click on the file hyperlink in the grid, you will be taken to the new Source Code Commit File Differences page that will show you exactly what changes were made to this file in the context of the current commit.

Similarly, if you are using the Developing > Source Code files pages and click on a specific file, the Commits grid will display a list of all the recent changes made to this file.

If you click on the commit hyperlink in the grid, you will be taken to the new Source Code Commit File Differences page that will show you exactly what changes were made to the current file in the context of this specific commit.

Source Code Commit File Details Page

This is a completely new page we have added to Spira to allow you to see quickly and easily what has changed in a specific file in a specific commit (or revision):

You can navigate to other files in the same commit or other commits for the same file using the new sidebar navigation. The main part of the page will let you see the individual versions of the code (before and after the change) as well as a unified DIFF between the two versions. The color coding will show you the lines and characters added (green), removed (pink), or modified (grey).

In addition to the unified view, there is a side-by-side split view:

If you choose to view the individual versions of the file, the standard syntax highlighting is used:

spotlight roadmap devops source code spira diffs code review