• J
    prepare_packed_git(): refactor garbage reporting in pack directory · 0a489b06
    Junio C Hamano 提交于
    The hook to report "garbage" files in $GIT_OBJECT_DIRECTORY/pack/
    could be generic but is too specific to count-object's needs.
    
    Move the part to produce human-readable messages to count-objects,
    and refine the interface to callback with the "bits" with values
    defined in the cache.h header file, so that other callers (e.g.
    prune) can later use the same mechanism to enumerate different
    kinds of garbage files and do something intelligent about them,
    other than reporting in textual messages.
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    0a489b06
cache.h 60.6 KB