author | Junio C Hamano <junkio@cox.net> | |
Wed, 12 Oct 2005 23:54:19 +0000 (16:54 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 13 Oct 2005 01:32:02 +0000 (18:32 -0700) | ||
commit | 84c8d8aec535e1d92c5acc36e84ac8e00f6e0e7a | |
tree | e015617c5842fccfc3e3801c562a25f2de4e1e2b | tree | snapshot |
parent | 9cf6d3357aaaaa89dd86cc156221b7b604e9358c | commit | diff |
Fix packname hash generation.
This changes the generation of hash packfiles have in their names, from
"hash of object names as fed to us" to "hash of object names in the
resulting pack, in the order they appear in the index file". The new
"git-index-pack" command is taught to output the computed hash value
to its standard output.
With this, we can store downloaded pack in a temporary file without
knowing its final name, run git-index-pack to generate idx for it
while finding out its final name, and then rename the pack and idx to
their final names.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This changes the generation of hash packfiles have in their names, from
"hash of object names as fed to us" to "hash of object names in the
resulting pack, in the order they appear in the index file". The new
"git-index-pack" command is taught to output the computed hash value
to its standard output.
With this, we can store downloaded pack in a temporary file without
knowing its final name, run git-index-pack to generate idx for it
while finding out its final name, and then rename the pack and idx to
their final names.
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c | diff | blob | history | |
pack-objects.c | diff | blob | history |