Skip to content
  • Aaron Lipman's avatar
    ref-filter: allow merged and no-merged filters · 21bf9339
    Aaron Lipman authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Enable ref-filter to process multiple merged and no-merged filters, and
    extend functionality to git branch, git tag and git for-each-ref. This
    provides an easy way to check for branches that are "graduation
    candidates:"
    
    $ git branch --no-merged master --merged next
    
    If passed more than one merged (or more than one no-merged) filter, refs
    must be reachable from any one of the merged commits, and reachable from
    none of the no-merged commits.
    
    Signed-off-by: default avatarAaron Lipman <alipman88@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    21bf9339