Provide documentation for git message digest extensions
PATCH 6/6 Provide documentation for git message digest extensions
The documentation includes API documentation for commands and technical documentation for the message-digest-related changes. The technical documentation is in
* Documentation/technical/collision-detect.txt
* Documentation/technical/pack-format.txt
The modified commands are documented in
* Documentation/git-count-objects.txt
* Documentation/git-index-pack.txt
* Documentation/git-verify-pack.txt
Signed-off-by Bill Zaumen <[email protected]>
--- Documentation/git-count-objects.txt | 12 +- Documentation/git-index-pack.txt | 17 +- Documentation/git-verify-pack.txt | 27 ++ Documentation/technical/collision-detect.txt | 342 ++++++++++++++++++++++++++ Documentation/technical/pack-format.txt | 47 ++++ 5 files changed, 439 insertions(+), 6 deletions(-) create mode 100644 Documentation/technical/collision-detect.txt
Documentation/git-count-objects.txt +11 -1
@@ -8,7 +8,7 @@ git-count-objects - Count unpacked number of objects and their disk consumption SYNOPSIS -------- [verse] -'git count-objects' [-v] +'git count-objects' [-v] [-M] DESCRIPTION -----------
@@ -25,6 +25,16 @@ OPTIONS objects, number of packs, disk space consumed by those packs, and number of objects that can be removed by running `git prune-packed`. +-M:: +--count-md:: + Report the number of loose objects with no stored message digests. + With the -v option, the number of missing "mds" files (these + contain the message digests for the SHA1 hashes in the corresponding + "idx" files) is reported, along with a count of the number of + mds files whose size is wrong (e.g., an index was created but the + existing MDS file was not updated) and a count of the number of + objects in pack files that do not have a stored message digest. + Values that are zero are not shown. GIT ---
Documentation/git-index-pack.txt +12 -5
@@ -11,14 +11,14 @@ SYNOPSIS [verse] 'git index-pack' [-v] [-o <index-file>] <pack-file> 'git index-pack' --stdin [--fix-thin] [--keep] [-v] [-o <index-file>] - [<pack-file>] + [-m <mds-file>] [<pack-file>] DESCRIPTION ----------- -Reads a packed archive (.pack) from the specified file, and -builds a pack index file (.idx) for it. The packed archive -together with the pack index can then be placed in the +Reads a packed archive (.pack) from the specified file, and builds a +pack index file (.idx) and a pack mds file (.mds) for it. The packed +archive together with the pack index can then be placed in the objects/pack/ directory of a git repository.
@@ -35,6 +35,14 @@ OPTIONS fails if the name of packed archive does not end with .pack). +-m <mds-file>:: + Write the generated pack mds file into the specified. + file Without this option, the name of the pack mds + file is constructed from the name of packed archive + file by replacing .pack with .idx (and the program + fails if the name of packed archive does not end + with .pack). + --stdin:: When this flag is provided, the pack is read from stdin instead and a copy is then written to <pack-file>. If
@@ -74,7 +82,6 @@ OPTIONS --strict:: Die, if the pack contains broken objects or links. - Note ----
Documentation/git-verify-pack.txt +27 -0
@@ -33,6 +33,19 @@ OPTIONS Do not verify the pack contents; only show the histogram of delta chain length. With `--verbose`, list of objects is also shown. +-M:: +--show-mds:: + Show the message digests along with the 40-character object names + (SHA1 value in hexidecimal). Ignored if --stat-only is set. If + --verbose is not set, only the table indexed by object names is + shown, although the files will be verified. The message digests + printed are the actual ones - if the MDS file does not contain these, + the verification will fail. The message digests will be + prefaced with a two-byte code indicating the type of digest. + The values (n hexadecimal) are 01 for a CRC, 05 for SHA-1, 08 + for SHA-256, and 10 for SHA-512. If the digest stored does + not match the actual digest, the actual one is printed as well. + \--:: Do not interpret any more arguments as options.
@@ -48,6 +61,20 @@ for objects that are not deltified in the pack, and for objects that are deltified. +When the -M option is used, the offset-in-pack field is followed by an +entry giving the message digest. The format used is: + + md=0xHEX_VALUE + +when a message digest exists, and + + <no md> + +when a message digest does not exist. These entries precede the depth +entry for deltified objects. A non-existent message digest will be shown +only if the MDS file is missing - while the MDS-file format allows missing +entries, the file will not be considered valid. + GIT --- Part of the linkgit:git[1] suite
Documentation/technical/collision-detect.txt new file +342 -0
342 lines not on this page · raw message
Documentation/technical/pack-format.txt +47 -0
50 lines not on this page · raw message
Signature · 1 line
1.7.1