View: Git History

Corresponding Git command: git log

Function: The view shows the history of the commits which were performed on the objects of the project or on other files in the Git repository. The change information is displayed for each commit. A comparison between commits is possible. You can also create a new branch directly from a commit.

Call: Git → History menu

Requirement: Git actions have already been performed for the open project. At least one commit has to exist.

Compare

The selected commit is compared with its state in the project storage and changes are displayed in the comparison view.

When two commits are selected, they are compared.

Graph

Visual representation of the forking and merging of branches

The consecutive commits performed on a branch are displayed in chronological order (from bottom to top). The individual branches are arranged next to each other and can be distinguished by different colors.

On the far left is the "master" branch, and next to it are the branches which are linked to it.

Ordinary commits are identified by circle symbols, and merge commits are identified by square symbols. The lines between the circle symbols of the commits show when they were forked or merged.

Git labels assigned in a Git tool are shown with a label icon.

For commits to the mutual remote master, its name is included (for example,origin/master).

Message

Commit message

Author

Author of the commit

Authored

Date of the commit

SHA1

"Secure Hash Algorithm 1"

SHA1 is a hash value and has the function of a unique ID of the commit.

The following information is displayed for the commit selected above:

Details

<text of the commit message>

 

SHA1:

"Secure Hash Algorithm 1"

SHA1 is a hash value and has the function of a unique ID of the commit.

Author

Name of the author of the change

Committer

Name of the committer of the change

Path

Physical path

Path of the object in the Git working directory of the CODESYS project

Example: project\device\plc_logic\application\plc_prg

When the Show physical paths option in the context menu of the Object column is selected, the Physical path column with the full path of the object is also displayed.

Example: project\device_5aca2685\plc_logic_b738fa32\application_0dcb78bb\plc_prg_33759ca0\33759ca04 b4e4930a972d2050e97661a.object

Object name

Name of the object in the CODESYS project, or name of another files in the Git repository

Examples: PLC_PRG, Device, .gitattributes

Object type

Type of object in the CODESYS project or type of file

Examples: DeviceObject, .gitattributes

Kind of change

Kind of change which was committed

Examples: Added, Deleted, Modified, Renamed, Moved

Double-clicking a change opens the comparison view which is known from the Status & Staging view. The change by the new commit (new object <commit ID>) is displayed. The view is used only for informational purposes. The information cannot be edited.

You can use the Create branch from commit command in the context menu to directly create a new branch for a selected commit.