git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Zwell <dzwell@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Martin Waitz <tali@admingilde.org>,
	Jeff King <peff@peff.net>
Subject: Re: git-diff not showing changes (corrupt repo?)
Date: Tue, 02 Oct 2007 22:17:41 -0500	[thread overview]
Message-ID: <470309D5.702@gmail.com> (raw)
In-Reply-To: <7vbqbhl44h.fsf@gitster.siamese.dyndns.org>

Junio C Hamano wrote:
 > Dan Zwell <dzwell@gmail.com> writes:
 >
 >> ... It is the same after I commit the new changes--at that point,
 >> "git-diff-tree HEAD^ HEAD -p" spits out a nice patch, but "git-diff
 >> HEAD^ HEAD" gives nothing.
 >
 > This part is most interesting.  They are both about comparing
 > two commits and do not interact with anything in the work tree
 > nor your index.
 >
 > ... Can you bisect it?
 >
I bisected twice to be sure, and have CC'd Martin Waitz on this (the 
issue is that some of my changes in a local repo are not being displayed 
by git-diff, either before or after they are committed, but git-status, 
git-whatchanged, and git-diff-tree all see that changes have been 
committed, and git-diff-files does see uncommitted changes).

e88ee2915493213ea0d0be64c542c090fefd4b33 is first bad commit
commit e88ee2915493213ea0d0be64c542c090fefd4b33
Author: Martin Waitz <tali@admingilde.org>
Date:   Tue Oct 10 21:16:25 2006 +0200

     paginate git-diff by default

I discovered this problem on my 64 bit machine, but the problem does not 
occur on my 32 bit machine. That is not the only difference between the 
two computers, but it seems the most obvious culprit. The 64 bit machine 
may have different libraries than the other, as they are running 
different distros.

I noticed that this is a rather old (and very small) patch, and I don't 
quite understand how it could cause this problem. I could not revert the 
patch to fix the problem. I placed a stripped down version of the 
repository here: http://zwell.net/git-error.tar.gz. The problem is very 
easy to observe on my machine, though it looks like some machines do not 
exhibit it. What else can I do to help?

Dan

  reply	other threads:[~2007-10-03  3:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 18:55 git-diff not showing changes (corrupt repo?) Dan Zwell
2007-10-02 19:15 ` Junio C Hamano
2007-10-03  3:17   ` Dan Zwell [this message]
2007-10-03  3:23     ` Jeff King
2007-10-03  4:00       ` Dan Zwell
2007-10-03  4:38         ` Jeff King
2007-10-03  3:44     ` Linus Torvalds
2007-10-02 19:17 ` Jeff King

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=470309D5.702@gmail.com \
    --to=dzwell@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    --cc=tali@admingilde.org \
    /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).