author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 27 Jun 2005 05:01:46 +0000 (22:01 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 27 Jun 2005 05:01:46 +0000 (22:01 -0700) | ||
commit | e18088451d92fbf83bfb57fd48201eda117f8103 | |
tree | 718ae283382872ae99ce7b49406679b0d3f498ab | tree | snapshot |
parent | c38138cd78f284b261a02323e8f18a1dee87c7fa | commit | diff |
csum-file interface updates: return resulting SHA1
Also, make the writing of the SHA1 as a end-header be conditional: not
every user will necessarily want to write the SHA1 to the file itself,
even though current users do (but we migh end up using the same helper
functions for the object files themselves, that don't do this).
This also makes the packed index file contain the SHA1 of the packed
data file at the end (just before its own SHA1). That way you can
validate the pairing of the two if you want to.
Also, make the writing of the SHA1 as a end-header be conditional: not
every user will necessarily want to write the SHA1 to the file itself,
even though current users do (but we migh end up using the same helper
functions for the object files themselves, that don't do this).
This also makes the packed index file contain the SHA1 of the packed
data file at the end (just before its own SHA1). That way you can
validate the pairing of the two if you want to.
csum-file.c | diff | blob | history | |
csum-file.h | diff | blob | history | |
pack-objects.c | diff | blob | history | |
unpack-objects.c | diff | blob | history |