Skip to content
  • Duy Nguyen's avatar
    prune-packed: avoid implying "1" is DRY_RUN in prune_packed_objects() · af0b4a3b
    Duy Nguyen authored and Junio C Hamano's avatar Junio C Hamano committed
    Commit b60daf05
    
     (Make git-prune-packed a bit more chatty. - 2007-01-12)
    changes the meaning of prune_packed_objects()'s argument, from "dry
    run or not dry run" to a bitmap.
    
    It however forgot to update prune_packed_objects() caller in
    builtin/prune.c to use new DRY_RUN macro. It's fine (for a long time!)
    but there is a risk that someday someone may change the value of
    DRY_RUN to something else and builtin/prune.c suddenly breaks. Avoid
    that possibility.
    
    While at there, change "opts == VERBOSE" to "opts & VERBOSE" as there
    is no obvious reason why we only be chatty when DRY_RUN is not set.
    
    Signed-off-by: default avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    af0b4a3b