Re: Getting list of changed objects...
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 14, 2005, 17:58 UTC
- Message-ID
- <Pine.LNX.4.58.0507141053540.19183@g5.osdl.org>
- In-Reply-To
- <42D6ACF0.30303@linux.intel.com>
On Thu, 14 Jul 2005, James Ketrenos wrote:
Show 8 quoted lines
> > The problem is that if I run: > > git-rev-list --objects B ^C > > It shows me all of the tree and commit objects but also gives a > list of all of the files that changed between A and C as if they > are needed to move C to B.
Since you haven't merged A and B in the above, they _are_ needed, aren't they?
Maybe what you want is
git-rev-list --objects B ^A ^C
ie "objects that are in B, but not in A or in C", since you seem to consider A uninteresting too?
I don't actually understand what you want to do, and also, "git-rev-list --objects" is actually not 100% careful - it can include objects that are in the "not" group, just because it doesn't actually bother to do a full negative list (it only creates a negative list for the "boundary" objects, but it won't even do "mark_tree_uninteresting()" for commits that it has decided cannot be meaningful, so it's not in any way guaranteed to be a _minimal_ set of objects).
Linus