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.