Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Orion/Documentation/User Guide/Reference/Git Commit page"

(Git Commit diffs)
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:
  
 
The <b>Git Commit</b> page allows you to see a detailed description of a single Git commit. This page includes all the usual Git commit details and shows in-line diffs for commit changes. You can also perform operations on commits from this page, such as tagging and cherry-picking the commit into your current active branch.
 
The <b>Git Commit</b> page allows you to see a detailed description of a single Git commit. This page includes all the usual Git commit details and shows in-line diffs for commit changes. You can also perform operations on commits from this page, such as tagging and cherry-picking the commit into your current active branch.
 +
 +
For help with common Git tasks see [[Orion/Documentation/User_Guide/Tasks/Working_with_Git|Working with Git]].
  
 
== Opening the Git Commit page ==
 
== Opening the Git Commit page ==
Line 7: Line 9:
 
To open the Git Commit page, click on any commit link in the [[Orion/Documentation/User_Guide/Reference/Git_Log_page|Git Log]], [[Orion/Documentation/User_Guide/Reference/Git_Status_page|Git Status]], or [[Orion/Documentation/User_Guide/Reference/Repositories_page|Repositories]] page.
 
To open the Git Commit page, click on any commit link in the [[Orion/Documentation/User_Guide/Reference/Git_Log_page|Git Log]], [[Orion/Documentation/User_Guide/Reference/Git_Status_page|Git Status]], or [[Orion/Documentation/User_Guide/Reference/Repositories_page|Repositories]] page.
  
You may also use the <b>Open Commit</b> command (Ctrl+Shift+H) from [[Orion/Documentation/User_Guide/Reference/Git_Log_page|Git Log]] or  the [[Orion/Documentation/User_Guide/Reference/Repositories_page|Repositories]] page, which will open the commit page for the given commit name (sha1).
+
You may also use the <b>Open Commit</b> command (Ctrl+Shift+H) from a [[Orion/Documentation/User_Guide/Reference/Repositories_page#Repository_detailed_view|Repository view]] page, which opens the commit page for the given commit name (sha1).
  
 
[[Image:Orion-git-commit-open_tooltip.png|Open commit command dialog]]
 
[[Image:Orion-git-commit-open_tooltip.png|Open commit command dialog]]
Line 13: Line 15:
 
== Git Commit details  ==
 
== Git Commit details  ==
  
The <b>Details</b> section includes all the usual Git commit details such as author, committer, summary, and parent commit. In the <b>Tags</b> section, any tags on the commit are shown, and actions for removing tags or adding a new tag are available.
+
The <b>Details</b> section includes all the usual Git commit details such as author, committer, summary, and parent commit. The toolbar allows you to <b>Cherry Pick</b> the commit to your active branch, revert the commit or <b>[[Orion/Documentation/User_Guide/Reference/Review_Request_page|Ask for Review]]</b>.  In the <b>Tags</b> section, any tags on the commit are shown, and actions for removing tags or adding a new tag are available.
  
 
[[Image:Orion-git-commit-details.png|Git commit details]]
 
[[Image:Orion-git-commit-details.png|Git commit details]]
Line 22: Line 24:
  
 
[[Image:Orion-git-commit-diffs.png|Git commit diff]]
 
[[Image:Orion-git-commit-diffs.png|Git commit diff]]
 +
 +
[[Category:Orion]]

Latest revision as of 11:44, 5 July 2017

Git Commit page

The Git Commit page allows you to see a detailed description of a single Git commit. This page includes all the usual Git commit details and shows in-line diffs for commit changes. You can also perform operations on commits from this page, such as tagging and cherry-picking the commit into your current active branch.

For help with common Git tasks see Working with Git.

Opening the Git Commit page

To open the Git Commit page, click on any commit link in the Git Log, Git Status, or Repositories page.

You may also use the Open Commit command (Ctrl+Shift+H) from a Repository view page, which opens the commit page for the given commit name (sha1).

Open commit command dialog

Git Commit details

The Details section includes all the usual Git commit details such as author, committer, summary, and parent commit. The toolbar allows you to Cherry Pick the commit to your active branch, revert the commit or Ask for Review. In the Tags section, any tags on the commit are shown, and actions for removing tags or adding a new tag are available.

Git commit details

Changes

The Changes section shows a list of all the file changes that make up the commit. Each commit can be expanded to show the diff inline, or the expand all/collapse all buttons at the top of the section can be used to open or close all change diffs. Once a diff is opened, you can toggle between Side by side or Unified views of the diff. You can also click the Compare link to open the compare page, or Working Directory Version to see the current file version in the editor.

Git commit diff

Back to the top