git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: Jeff King <peff@peff.net>,
	git@vger.kernel.org, Rene Stadler <renestadler84@gmail.com>
Subject: Re: [RFC/PATCH] Add a new commit-raw command.
Date: Tue, 24 Feb 2009 15:07:01 -0800	[thread overview]
Message-ID: <20090224230701.GW22848@spearce.org> (raw)
In-Reply-To: <20090224221406.GA6299@coredump.intra.peff.net>

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

And if you are really writing a lot of new objects, use fast-import.

-- 
Shawn.

      parent reply	other threads:[~2009-02-24 23:08 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
2009-02-24 23:07   ` Shawn O. Pearce [this message]

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=20090224230701.GW22848@spearce.org \
    --to=spearce@spearce.org \
    --cc=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).