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

unifiled diff always show wrong changes (base files compare with new files)

By Asmwarr... on September 26, 2011 10:05 (imported from Google Code)


What steps will reproduce the problem?
1.context menu to show the change log
2.right click on the latest log entry, and context menu to select diff from parent 2
3.the result shows many "minus" instead of many "plus".
----------------------------------------------------------
The result looks like:
gdb/linespec.c | 22 +++-------------------
gdb/main.c | 25 +------------------------
gdb/source.c | 8 +-------
gdb/stack.c | 13 +++----------
gdb/utils.c | 32 --------------------------------
gdb/windows-nat.c | 44 +-------------------------------------------
6 files changed, 9 insertions(+), 135 deletions(-)

diff --git a/gdb/linespec.c b/gdb/linespec.c
index c8f49b8..37ec368 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -43,7 +43,6 @@
#include "arch-utils.h"
#include <ctype.h>
#include "cli/cli-utils.h"
-#include "filenames.h"
....
-------------------------------------------

What is the expected output? What do you see instead?
In-fact, I have add many lines in my source code, so the diff should have the new files compare on base files. but Not sure why it do a reverse compare(old files compare on new files)
The expected result should be:
...
6 files changed, 135 insertions(+), 9 deletions(-)
...
-------------------------------------------------
What version of the product are you using? On what operating system?
1.7.3 and 1.7.4 nightly build 0918, msysgit 1.7.6.

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