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 Log page"

(Operations from the Git Log page)
(Operations from the Git Log page)
Line 16: Line 16:
 
[[Image:Orion-git-log-overview.png]]
 
[[Image:Orion-git-log-overview.png]]
  
From this page you can open the contents of a commit in an editor, compare any two commits, compare any commit with the working tree, or tag a commit. In the toolbar on the far right hand side, there is a command to push any unreleased changes to the associated remote repository, if applicable.
+
If you are viewing a local branch that is not up to date with its remote tracking branch, a <b>Push All</b> command is available in the toolbar to push your unreleased changes. When viewing a remote branch, <b>Fetch</b> and <b>Merge</b> commands are available in the toolbar to bring remote changes into your local repository and working copy.
 +
 
 +
Click any commit in the list to open a pane showing detailed information about the commit. This pane includes author information, the commit message, and the SHA-1 hash that uniquely identifies that commit in the Git repository. The pane also shows a list of all files that had changes in that commit.
 +
 
 +
Click the icon next to any file in that pane to open a compare viewer showing the differences in that file.
  
 
<p><img src="images/02m7-git-log-page.png" alt="Git log page"/></p>
 
<p><img src="images/02m7-git-log-page.png" alt="Git log page"/></p>
 +
 +
== Git Log for single files ==

Revision as of 11:01, 21 June 2011

The Git Log page allows you to browse the commit history of a Git repository branch. The page can show all the commits on a given branch, or focus on only the commits that involve changes to a particular file or directory. You can browse both local and remote branches using this page. What you see in this page depends on how you navigated to it.

Opening the Git Log page

There are many ways to open the Git Log page:

  • Choose a file or directory in the Navigator page, and select Git Log in the Actions column. This will show all commits in your current local branch that involve changes to the chosen file or directory.
  • Choose a file or directory in the Navigator page, and select Git Remote in the Actions column. This will show all commits in the current remote tracking branch that involve changes to the chosen file or directory.
  • From the Git Status page, click the Complete log link next to either the local or remote tracking branch. This will open the complete log for either of those branches.
  • From the Repositories page, click Show Git Log in the Actions column next to any local or remote branch of a repository. This will show the entire commit history of the corresponding branch.
  • From the Git Log page itself, there are Switch to Remote or Switch to Local links in the toolbar to navigate between the logs of local and remote tracking branches.

Operations from the Git Log page

Once on the Git Log page, you will see a list of commits in chronological order. The title area lets you know what branch and file or directory the page is focused on. In the example below, we are viewing the local branch called master in the repository called Orion Client.

Orion-git-log-overview.png

If you are viewing a local branch that is not up to date with its remote tracking branch, a Push All command is available in the toolbar to push your unreleased changes. When viewing a remote branch, Fetch and Merge commands are available in the toolbar to bring remote changes into your local repository and working copy.

Click any commit in the list to open a pane showing detailed information about the commit. This pane includes author information, the commit message, and the SHA-1 hash that uniquely identifies that commit in the Git repository. The pane also shows a list of all files that had changes in that commit.

Click the icon next to any file in that pane to open a compare viewer showing the differences in that file.

<img src="images/02m7-git-log-page.png" alt="Git log page"/>

Git Log for single files

Back to the top