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

Re: 'git show' with multiple revisions

From
EAEd Avis <eda@waniasset.com>
Date
Apr 29, 2015, 15:47 UTC
Message-ID
<loom.20150429T174544-7@post.gmane.org>
In-Reply-To
<20150429020452.GA873@peff.net>
Jeff King <peff <at> peff.net> writes:
Show 11 quoted lines
>I think you want `git cat-file`:
>
>  {
>	echo REV1:FILE
>	echo REV2:FILE
>  } |
>  git cat-file --batch
>
>This prints a header line for each output object which contains the size
>of the object (so a parser reads a header line, then N bytes, then a
>header line, N bytes, and so on).

This looks like what I want but the object ids printed appear to be the id of the file in a given revision - not the id of the revision itself. So the ids in the output are not the same as the ones in the input.

That's fine, as long as I can assume that the output entries are in the same order as the input?

-- 
Ed Avis <eda@waniasset.com>
Previous: Jeff KingNext: Jeff King
Message 3 of 7 in “'git show' with multiple revisions”
  1. Ed AvisApr 28, 2015
  2. Jeff KingApr 29, 2015
  3. Ed AvisApr 29, 2015
  4. Jeff KingApr 29, 2015
  5. Junio C HamanoApr 29, 2015
  6. Ed AvisApr 29, 2015
  7. Junio C HamanoApr 29, 2015

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.