-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change pack file format. Hopefully for the last time.
This also adds a header with a signature, version info, and the number of objects to the pack file. It also encodes the file length and type more efficiently.
- Loading branch information
Linus Torvalds
committed
Jun 28, 2005
1 parent
d22b929
commit a733cb6
Showing
4 changed files
with
174 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef PACK_H | ||
#define PACK_H | ||
|
||
enum object_type { | ||
OBJ_NONE, | ||
OBJ_COMMIT, | ||
OBJ_TREE, | ||
OBJ_BLOB, | ||
OBJ_TAG, | ||
OBJ_DELTA, | ||
}; | ||
|
||
/* | ||
* Packed object header | ||
*/ | ||
#define PACK_SIGNATURE 0x5041434b /* "PACK" */ | ||
struct pack_header { | ||
unsigned int hdr_signature; | ||
unsigned int hdr_version; | ||
unsigned int hdr_entries; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.