git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: wsc9tt@gmail.com
Cc: git@vger.kernel.org
Subject: Re: git-diff-tree rename detection bug
Date: Wed, 14 Sep 2005 11:51:48 -0700	[thread overview]
Message-ID: <7v3bo7jxdn.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <59a6e583050914094777c4fe96@mail.gmail.com> (Wayne Scott's message of "Wed, 14 Sep 2005 11:47:56 -0500")

Wayne Scott <wsc9tt@gmail.com> writes:

> Look at the diffs between ad6571a78ac74e9fa27e581834709067dba459af and
> it's parent with and without rename detection enabled.  (In linux-2.6
> git tree)

> $ git-diff-tree -r  -M $REV^1 $REV | grep termios.h
> :000000 100644 0000000000000000000000000000000000000000
>    237533bb0e9f1a3e640c4906d8b350deafd315b9 A      include/asm-powerpc/termios.h
> :100644 000000 97c6287a6cbaa5903ee1a5934a5553e9e485d8e7
>    0000000000000000000000000000000000000000 D      include/asm-ppc/termios.h
>
> Notice how the the fact that include/asm-ppc64/termios.h is deleted gets lost?
> Looks broken to me.

It looks broken to me, too.  I rebuilt from a reasonably ancient
source (v0.99) and re-run the test but I could not get it to
produce 'A' for include/asm-powerpc/termios.h.  So I rewound it
further to 4d235c8044a638108b67e22f94b2876657130fc8 commit,
which is really ancient version, but it still says it is renamed
from asm-ppc64 directory.  FWIW, all the v0.99* tagged versions
seem to detect that rename correctly and not lose anything in my
tests.

Which version of git do you run and on what platform?  It might
be that something in the diffcore chain is broken in non-i386
and/or non-GNU/Linux and/or non-GCC environment.

Shoot, I thought it would be a good practice-case for me to use
'git bisect' in reverse to find the commit that fixed a bug ;-).
My copy of linux-2.6 repository for testing is fully packed so I
could not try the commit that introduced diffcore-rename.c, but
that is what I really wanted to try.

  parent reply	other threads:[~2005-09-14 18:51 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-14 16:47 git-diff-tree rename detection bug Wayne Scott
2005-09-14 18:09 ` Junio C Hamano
2005-09-14 18:40   ` Wayne Scott
2005-09-14 20:24     ` Linus Torvalds
2005-09-14 20:41       ` Fix alloc_filespec() initialization Linus Torvalds
2005-09-15  2:23       ` git-diff-tree rename detection bug Paul Mackerras
2005-09-15  2:26         ` Paul Mackerras
2005-09-15  3:36           ` Linus Torvalds
2005-09-15  4:52             ` Paul Mackerras
2005-09-15  8:17               ` Junio C Hamano
2005-09-15 14:49               ` Josef Weidendorfer
2005-09-20 10:50                 ` [Valgrind-developers] " Paul Mackerras
2005-09-15  3:29         ` Linus Torvalds
2005-09-16  5:59           ` Junio C Hamano
2005-09-15  5:58         ` H. Peter Anvin
2005-09-15  7:41           ` Junio C Hamano
2005-09-15 14:55           ` Linus Torvalds
2005-09-16 12:53             ` Matthias Urlichs
2005-09-15 20:57           ` Nicolas Pitre
2005-09-14 18:51 ` Junio C Hamano [this message]
     [not found]   ` <59a6e5830509141208282166c8@mail.gmail.com>
2005-09-14 19:19     ` Junio C Hamano
2005-09-14 20:53       ` Linus Torvalds
2005-09-14 21:55         ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7v3bo7jxdn.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=git@vger.kernel.org \
    --cc=wsc9tt@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).