]>
Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/git-branch-dates
   2 # Usage: git-branch-dates 
   3 # Show git branches by date - useful for showing active branches 
   5 # - http://www.commandlinefu.com/commands/view/2345/show-git-branches-by-date-useful-for-showing-active-branches 
   6 # - https://stackoverflow.com/a/30076212 
   8 format
='%(HEAD) %(color:green)%(refname:short)%(color:reset)|%(color:bold black)%(committerdate:relative)%(color:reset)' 
   9 if [[ "$1" = "-v" || "$1" = "-vv" ]]; then 
  11     format
="$format"'|%(color:yellow)%(objectname:short)%(color:reset) %(contents:subject)' 
  15     --sort=-committerdate \