Git development
 help / color / mirror / Atom feed
* git-whatchanged -p anomoly?
@ 2005-08-18 20:49 Luck, Tony
  2005-08-18 22:10 ` Linus Torvalds
  2005-08-18 22:13 ` git-whatchanged -p anomoly? Junio C Hamano
  0 siblings, 2 replies; 8+ messages in thread
From: Luck, Tony @ 2005-08-18 20:49 UTC (permalink / raw)
  To: git

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:

>  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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: git-whatchanged -p anomoly?
@ 2005-08-18 22:44 Luck, Tony
  2005-08-18 23:04 ` Linus Torvalds
  0 siblings, 1 reply; 8+ messages in thread
From: Luck, Tony @ 2005-08-18 22:44 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git


>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.

Yes I had a failed merge ... I thought that I had cleaned up from it, but
clearly I hadn't.  Bother.

I guess I have a bit of tree maintenance to do ... But I think that it
should be easy ... I can just step "test" back to before I merged in
the Alex patch.  Redo the Alex patch properly.  Then re-merge all the
branches that happened after this.  Followed by crossing my fingers and
running "git prune".

Maybe I'll try all that in a *copy" of my GIT tree first!

-Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: git-whatchanged -p anomoly?
@ 2005-08-18 23:57 Luck, Tony
  0 siblings, 0 replies; 8+ messages in thread
From: Luck, Tony @ 2005-08-18 23:57 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

>Yup. Think of it as a good exercise in git ;)

Fixed now (I hope).

-Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-08-18 23:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-18 20:49 git-whatchanged -p anomoly? Luck, Tony
2005-08-18 22:10 ` Linus Torvalds
2005-08-18 22:31   ` git-applymbox: verify that index is clean Linus Torvalds
2005-08-18 22:13 ` git-whatchanged -p anomoly? Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2005-08-18 22:44 Luck, Tony
2005-08-18 23:04 ` Linus Torvalds
2005-08-18 23:47   ` Johannes Schindelin
2005-08-18 23:57 Luck, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox