Re: [RFC/PATCH] Add a new commit-raw command.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

?

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux