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
  • #2179
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

Revision comparisons against HEAD should not generate temporary files

By vedr... on April 25, 2014 23:37 (imported from Google Code)


What steps will reproduce the problem?

  1. Open the Revision Graph through the right-click context menu
  2. Select one branch that is the parent/grandparent of HEAD
  3. Hold ctrl and select HEAD
  4. Right click on either of the selected branches and choose "Compare Revisions"
  5. Now double click on any of the files in the Changed Files dialog that popped up

What is the expected output? What do you see instead?
The difftool displays a diff of two files, both of which are temporarily files, even though one of the files is actually unchanged in the working state on HEAD. The file that corresponds to HEAD should not be re-created as a temporary file prior to the diff.

This is troublesome when doing code reviews, when you may want to edit the file you are comparing if a bug is discovered.

The workaround for this is to replace the "Difference between" value in the "Changed files" dialog from the commit hash of HEAD to 00000000000000000000000000000000000000.

Then TortoiseGit will recognize the long string of 0's as the working copy, and not create a temporary file for the diff.

What version of TortoiseGit and msysgit are you using? On
what operating system?
Using TortoiseGit 1.8.8.0 64-bit, msysgit version 1.9.2 on Windows 7 64-bit.

Thanks.

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