Commit details

Last Update: 3/14/2017

Team Services | TFS 2017 Update 1

Commit details view

The commit details view provides information regarding all the changes made as part of a commit. You can view additional metadata associated with the commit and also perform certain actions to revert or cherry pick the commit.

Commit details page

What information do you see on the commit details page?

  • Commit ID and commit message - You can view the commit Id and commit message of the commit. You also have the option to copy the commit Id or commit message by clicking on the Copy buttons.

  • Author details - You can also view the author, committer, and pusher details in the author drop-down. Click on the Pushed on link to access the associated push details

    Author page

  • Associated pull requests - Once you navigate from the commit history to the commit details, the context of the branch from the commit history page is retained. In the following example you can see that commit #33 brought this commit to the master branch. You can also view all the associated pull requests for this commit, which are all the pull requests that brought this commit to one branch or another.

    Associated pull requests

  • Associated work items - You can also view all the work items associated with this commit in the work items dropdown.

    Associated work items

  • Build status - You can also review the build status associated with the commit.

    Build status

What actions can you perform?

You can perform the following actions on the commit details page.

  • Search in branches and tags - Click the Search in branches button to search a commit in a particular branch or tags. You can view whether a particular branch or a tag includes this commit or not.

    Search in branches and tags

  • Cherry pick - Click on Cherry-pick to cherry pick a commit and port the changes to another branch.

    Cherry pick

  • Revert - Click on Revert to revert the changes of a commit . A topic branch is created with the reverted changes and then you will be prompted to create a pull request to the target branch.

    Revert

  • New branch - Click on New branch to create a new branch from a commit.

    Create branch

What are the changes included in the commit?

The source explorer allows you to select a file or a folder to view changes associated with a commit.

  • Diff to parent - Click on Diff on parent1 in the Source Explorer pane to view the difference between the current commit and its parent commit.

    Diff to parent

  • The file explorer view provides all the capabilities that we get in the file explorer view i.e. you can

    • browse files in a side by side or inline diff view
    • use the navigation keys to browse the next set of changes
    • preview the files
    • compare file diff for previous commits

      Diff view