From: Ed Avis <eda@waniasset•com>
To: git@vger•kernel.org
Subject: Re: 'git show' with multiple revisions
Date: Wed, 29 Apr 2015 15:47:33 +0000 (UTC) [thread overview]
Message-ID: <loom.20150429T174544-7@post.gmane.org> (raw)
In-Reply-To: 20150429020452.GA873@peff.net
Jeff King <peff <at> peff.net> writes:
>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>
next prev parent reply other threads:[~2015-04-29 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 10:10 'git show' with multiple revisions Ed Avis
2015-04-29 2:04 ` Jeff King
2015-04-29 15:47 ` Ed Avis [this message]
2015-04-29 15:53 ` Jeff King
2015-04-29 15:53 ` Junio C Hamano
2015-04-29 16:01 ` Ed Avis
2015-04-29 16:08 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20150429T174544-7@post.gmane.org \
--to=eda@waniasset$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox