Skip to content
  • Junio C Hamano's avatar
    notes remove: allow removing more than one · c3ab1a8e
    Junio C Hamano authored
    
    
    While "xargs -n1 git notes rm" is certainly a possible way to remove notes
    from many objects, this would create one notes "commit" per removal, which
    is not quite suitable for seasonal housekeeping.
    
    Allow taking more than one on the command line, and record their removal
    as a single atomic event if everthing goes well.
    
    Even though the old code insisted that "git notes rm" must be given only
    one object (or zero, in which case it would default to HEAD), this
    condition was not tested. Add tests to handle the new case where we feed
    multiple objects, and also make sure if there is a bad input, no change
    is recorded.
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    c3ab1a8e