Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #2741
Closed
Open
Issue created Mar 24, 2016 by André Hänsel@AndreKR

TortoiseGitBlame should have an option to show merges instead of checkpoint commits

If you are using the workflow where you squash every merge, this feature request is not for you. :)

But if you keep branch commits, it would be very useful to have an option to show the commit when a line was merged into the current branch instead of showing the commit on the branch.

This can be achieved in the following way:

  • Before running git blame, run git rev-list --first-parent HEAD (or the respective Ref)
  • Prepend every returned line with the previous line, just as | awk '{print p " " $0}{p=$0}' does
  • Write the result to a temporary file
  • Call git blame with the -S tempfile option

For each line you will see when a line was merged into the current branch.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking