diff options
author | Nicolas Pitre <nico@cam.org> | 2007-04-04 22:49:04 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-05 23:59:47 +0200 |
commit | d72308e01c5977177cda0aed06cfeee9192e1247 (patch) | |
tree | c42895d515c9bdae4d429ddd93c74b2f082fe09d /dir.c | |
parent | RPM spec: include git-p4 in the list of all packages. (diff) | |
download | git-d72308e01c5977177cda0aed06cfeee9192e1247.tar.xz git-d72308e01c5977177cda0aed06cfeee9192e1247.zip |
clean up and optimize nth_packed_object_sha1() usage
Let's avoid the open coded pack index reference in pack-object and use
nth_packed_object_sha1() instead. This will help encapsulating index
format differences in one place.
And while at it there is no reason to copy SHA1's over and over while a
direct pointer to it in the index will do just fine.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'dir.c')
0 files changed, 0 insertions, 0 deletions