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 20: Line 20:
  
 
Further to the right, there are actions for tagging and cherry-picking individual commits.
 
Further to the right, there are actions for tagging and cherry-picking individual commits.
 
[[Image:Orion-git-log-actions.png|Git log actions]]
 
  
 
You can click on a commit link to open the Git Commit page. Hover on any commit in the list to see a tooltip dialog with detailed information about the commit.  
 
You can click on a commit link to open the Git Commit page. Hover on any commit in the list to see a tooltip dialog with detailed information about the commit.  

Revision as of 15:21, 16 October 2012

Git Log page

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:

  • Select a file or directory in the Navigator page, and choose Git Log in the Actions menu. This will show all commits in your current local branch that involve changes to the chosen file or directory.
  • Select a file or directory in the Navigator page, and choose Git Remote in the Actions menu. 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 View Full Log link in the commits section.
  • From the Repositories page, click the Git Log link 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, the Related menu can be used to switch between the 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.

Git log overview

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.

Further to the right, there are actions for tagging and cherry-picking individual commits.

You can click on a commit link to open the Git Commit page. Hover on any commit in the list to see a tooltip dialog with detailed information about the commit.

Git log commit details

Git Log for single files

When viewing the Git log for a single file, some additional capabilities are available. First, the breadcrumb in the title area allows you to navigate to the Git log list for any parent of the currently viewed file. Additional commands are also available in the Actions column. The Open link will open the revision of the current file as it appeared in that commit. You can also compare the contents of that commit to the current contents of that file in your working tree. Finally, if you select any two files, a Compare With Each Other command appears in the toolbar, to compare the differences in that file between the selected commits.

Git log for a single file

Copyright © Eclipse Foundation, Inc. All Rights Reserved.