From: Felipe Contreras <felipe.contreras@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, Rene Stadler <renestadler84@gmail.com>
Subject: Re: [RFC/PATCH] Add a new commit-raw command.
Date: Wed, 25 Feb 2009 00:17:01 +0200 [thread overview]
Message-ID: <94a0d4530902241417ld391492h2f76e325ef20a125@mail.gmail.com> (raw)
In-Reply-To: <20090224221406.GA6299@coredump.intra.peff.net>
On Wed, Feb 25, 2009 at 12:14 AM, Jeff King <peff@peff.net> wrote:
> On Tue, Feb 24, 2009 at 11:28:34PM +0200, Felipe Contreras wrote:
>
>> This command receives as input a raw commit object, and outputs the
>> generated sha1. This is very useful when doing some serious repo
>> reconstructions.
>>
>> For example: git cat-file -p 343ee25 | git write-raw
>> 343ee2589d1b94772f513cc699765622351acb19
>
> How about:
>
> git cat-file -p 343ee25 | git hash-object -t commit --stdin
Duh! Thanks :)
I knew there must have been something for that use-case.
--
Felipe Contreras
next prev parent reply other threads:[~2009-02-24 22:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 21:28 [RFC/PATCH] Add a new commit-raw command Felipe Contreras
2009-02-24 22:14 ` Jeff King
2009-02-24 22:17 ` Felipe Contreras [this message]
2009-02-24 23:07 ` Shawn O. Pearce
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=94a0d4530902241417ld391492h2f76e325ef20a125@mail.gmail.com \
--to=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=renestadler84@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).