]> git.ipfire.org Git - thirdparty/git.git/commit - sha1_file.c
Add "unpack_sha1_header()" helper function
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Jun 2005 00:54:59 +0000 (17:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Jun 2005 00:54:59 +0000 (17:54 -0700)
commitc4483576b8d30fadcae208d8f12383febd060d0a
treea062ffc614a516f3ee2090f9336e86d0ed8091e6
parentf35ca9ed3ef02541a938f3bd43cad83af93eb94f
Add "unpack_sha1_header()" helper function

It's for people who aren't necessarily interested in the whole
unpacked file, but do want to know the header information (size,
type, etc..)

For example, the delta code can use this to figure out whether
an object is already a delta object, and what it is a delta
against, without actually bothering to unpack all of the actual
data in the delta.
cache.h
sha1_file.c