author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 2 Jun 2005 00:54:59 +0000 (17:54 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 2 Jun 2005 00:54:59 +0000 (17:54 -0700) | ||
commit | c4483576b8d30fadcae208d8f12383febd060d0a | |
tree | a062ffc614a516f3ee2090f9336e86d0ed8091e6 | tree | snapshot |
parent | f35ca9ed3ef02541a938f3bd43cad83af93eb94f | commit | diff |
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.
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 | diff | blob | history | |
sha1_file.c | diff | blob | history |