• J
    [PATCH] Show more details of packfile with verify-pack -v. · ad8c80a5
    Junio C Hamano 提交于
    This implements show_pack_info() function used in verify-pack
    command when -v flag is used to obtain something like
    unpack-objects used to give when it was first written.
    
    It shows the following for each non-deltified object found in
    the pack:
    
        SHA1 type size offset
    
    For deltified objects, it shows this instead:
    
        SHA1 type size offset depth base_sha1
    
    In order to get the output in the order that appear in the pack
    file for debugging purposes, you can do this:
    
     $ git-verify-pack -v packfile | sort -n -k 4,4
    Signed-off-by: NJunio C Hamano <junkio@cox.net>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    ad8c80a5
sha1_file.c 29.0 KB