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

git-whatchanged -p anomoly?

From
Luck, Tony <tony.luck@intel.com>
Date
Aug 18, 2005, 20:49 UTC
Message-ID
<200508182049.j7IKn7TA010456@agluck-lia64.sc.intel.com>

Yesterday I was all happy ... Linus pulled a couple of changes from my tree, and after I did a pull back from his tree into my "linus" tracking branch, my status scripts correctly identified the branches that I'd been using to track those changes as being no longer needed.

But this morning I ran another one of my status scripts that does
 $ git-whatchanged -p test ^linus | diffstat -p1

and was surprised when it reported changes in 10 files that I knew I hadn't touched (the other 18 files it reported looked correct).

So I ran:
 $ git-whatchanged test ^linus | git-shortlog
and this just reported the changesets that I expected.
 $ git-diff-tree -p linus test | diffstat -p1
shows what I expect to see.
The current heads of the two branches are:

linus=30d5b64b63fa69af31b2cba32e6d71d68526eec9 test=0e595ad82db1b42d631e581630eb3fbeebb3c285

my tree is at: rsync://rsync.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6.git

The spurious changes reported by "git-whatchanged -p" are:
Show 10 quoted lines
>  Documentation/acpi-hotkey.txt              |    3 
>  Documentation/kernel-parameters.txt        |    5 
>  drivers/acpi/osl.c                         |    6 
>  fs/jfs/inode.c                             |    4 
>  fs/jfs/jfs_logmgr.c                        |   36 -
>  fs/jfs/jfs_logmgr.h                        |    2 
>  fs/jfs/jfs_txnmgr.c                        |   12 
>  fs/jfs/super.c                             |    4 
>  include/asm-i386/processor.h               |    2 
>  include/asm-x86_64/processor.h             |    2 
Is this a bug, or am I just confused about how "git-whatchanged" works?
-Tony
Next: Linus Torvalds
Message 1 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.