git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-whatchanged -p anomoly?

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 18, 2005, 22:10 UTC
Message-ID
<Pine.LNX.4.58.0508181503200.3412@g5.osdl.org>
In-Reply-To
<200508182049.j7IKn7TA010456@agluck-lia64.sc.intel.com>
On Thu, 18 Aug 2005, Luck, Tony wrote:
Show 7 quoted lines
> 
> The spurious changes reported by "git-whatchanged -p" are:
> 
> >  Documentation/acpi-hotkey.txt              |    3 
> >  Documentation/kernel-parameters.txt        |    5 
> >  drivers/acpi/osl.c                         |    6 
> >  fs/jfs/inode.c                             |    4 
Ehh. These are all from:
	Author: Alex Williamson <alex.williamson@hp.com>
	    [IA64, X86_64] fix swiotlb sizing
in commit b63d6e09b432e6873d072a767c87218f8e73e66c.
And you've signed off on it.
Do a
	git-diff-tree -p --pretty b63d6e09b432e6873d072a767c87218f8e73e66c | less -S
to see it in all its glory.

Now, I suspect you didn't mean to commit that thing: it really looks like you've mixed up your patches somehow, because the commit message seems to match only a very small portion of the patch.

Did you perhaps have a failed merge or something that was in your index when you applied that patch? If you have a dirty index when you do "git-applymbox", it the commit done as part of the applymbox might commit other state too.

(git-applymbox _does_ verify that the files that it patches are up-to-date in the index, but it does _not_ verify that the index matches the current HEAD. I guess I could add a sanity check for that...)

> Is this a bug, or am I just confused about how "git-whatchanged" works?

It's definitely not a bug in git-whatchanged, and I don't think you're confused about how git-whatchanged is supposed to work. But I think you've committed a bad patch.

		Linus
Previous: Luck, TonyNext: Linus Torvalds
Message 2 of 4 in “git-whatchanged -p anomoly?”
  1. Luck, TonyAug 18, 2005
  2. Linus TorvaldsAug 18, 2005
  3. git-applymbox: verify that index is cleanLinus Torvalds, Aug 18, 2005
  4. Junio C HamanoAug 18, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.