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

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
Previous: James KetrenosNext: James Ketrenos
Message 2 of 3 in “Getting list of changed objects...”
  1. James KetrenosJul 14, 2005
  2. Linus TorvaldsJul 14, 2005
  3. James KetrenosJul 14, 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.