Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
TortoiseGit
TortoiseGit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 302
    • Issues 302
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #914

Closed
Open
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
None
Milestone
None
Assign milestone
Time tracking