Skip to content

Commit

Permalink
[PATCH] Teach read_sha1_file() and friends about packed git object st…
Browse files Browse the repository at this point in the history
…ore.

GIT_OBJECT_DIRECTORY and GIT_ALTERNATE_OBJECT_DIRECTORIES can
have the "pack" subdirectory that houses "packed GIT" files
produced by git-pack-objects (e.g. .git/objects/pack/foo.pack
and .git/objects/pack/foo.idx; always store them as pairs).  The
following functions in sha1_file.c can then read object contents
from such packed file:

 - sha1_object_info()
 - has_sha1_file()
 - read_sha1_file()

Signed-off-by: Junio C Hamano <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Junio C Hamano authored and Linus Torvalds committed Jun 27, 2005
1 parent 36e4d74 commit 1f68855
Show file tree
Hide file tree
Showing 2 changed files with 458 additions and 12 deletions.
Loading

0 comments on commit 1f68855

Please sign in to comment.