If the Git add-on is configured and licensed successfully, new tabs are added to each Jira issue.
Open an issue then go to the Git Roll Up tab to view commit statistics, diffs and related issues.
The Summary page shows statistical information of the first and last revision of the commits and the time since the last commit was made. A summary of the files, lines and the developers who made the changes in this range of commits are also displayed.
Starting v2.9.9 of the Git add-on, the git commit compare function (Repository Browser - Compare) is added into this tab:
issuekey in (GIT-1851, GIT-1159, GITCL-284, GITCL-254).
As of v2.10.3 of the Git Integration for Jira add-on, the Git Roll Up issue tab will now find the best matching branch name using the Jira issue key (ex: ABC-123) to find it. For example, if you have a branch name of v2.1-ABC-123, that branch will be auto-selected when you open the Git Roll Up issue tab.
Sort the code statistics by clicking the respective Sort button then selecting the required sorting option.
Select roll up options by clicking the respective Rollup button:
To view the code diff of the file, click the corresponding filename on the Files summary table. A dialog will appear displaying the file diff between the first and last revisions of the commit.
Open an issue then go to the Git Commits tab to view commit information:
|Repository/Indexed||Name of the repository (as in add-on config) and date of last synchronization with remote repo.|
|Author/Committer||User who performed the commit. Hover the mouse pointer on the name to view user card.|
|Issue key||This is the Jira issue with the corresponding commit message.|
|Repository Name||This is the name of the repository the commit has been made. Click to browse this repository via Repository Browser.|
|Branch||Name of the Git branch. Click to view this branch via Repository Browser.|
|Commit UID||UID of the commit and git host link. Click the UID to view the code diffs for this commit. Click the git host link to view this commit via the git host server.|
|Files Changed||List of files affected by the commit. Click the file or git host link to view code diff of this commit.|
View the whole commit code diff information by clicking the View full commit button to the right of the commit message.
View code diff information of the particular file by clicking the filename for each file adjacent to the rollup counter markers.
As of v2.5.5 of the Git Add-on, the code diff dialog view is improved. The Git add-on uses the correct syntax highlighting when viewing the code diff of the file based on its file extension:
|File Extension||Language ID|
|php, phtml, php3, php4, php5||PHP|
|html, html, xhtml, xml||Markup|
|c, h, m, mm, pl, pm||CLike|
There is no language auto-detection in the diff dialog. The detection is based on file extension.