Git Repository History tab for NSH script


The Git Repository History tab displays a history of changes made in the NSH script and committed to the local Git repository. This tab is available only after you finish adding a script to the Depot (see Adding-a-Network-Shell-script).

For each committed change, the following information is displayed, in tabular form:

  • Commit ID
  • Commit time
  • Commit message
  • Name of committer
  • Email address of committer
  • Name of the author of the change
  • Email address of the author

If the change has not yet been committed, the commit message for the change appears as "Uncommitted changes exist" and NA (not applicable) appears in the other columns.

Several buttons on this tab enable you to perform the following actions:

Action

Steps

Refresh the list of NSH script revisions

Click Refresh refresh.png.

Commit a change

Select the uncommitted entry and click Commit commit.png.
Then enter information in the Git Commit dialog box and click Commit.

Compare two versions of the NSH script

Select the two revisions that you want to compare and click Compare compare.png.
A new tab displays a comparison of the NSH script revisions, side by side.

Note: To include line numbers in the comparison (and in all other text editors in the product), select the Show line numbers option in the Preferences dialog box. To access this option, first select Window > Preferences, and then navigate to General > Editors > Text Editors.

Revert to a previous version of the NSH script

Select the revision to which you want to revert and click Get This Revision getThisRevision.png.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Server Automation 24.2