3 # List the most recently-active (10 by default) branches
5 USAGE
='[-h|--help|-<N>]'
6 LONG_USAGE
='list the N most recently-active branches
7 (N is optional, default to 8)
10 exec_path
=$
(git
--exec-path)
11 .
$exec_path/git-sh-setup
14 # Output format string
22 if [[ "$pad1" < "0" ]]; then
25 echo $r "${spaces:1:$pad1}" $s;
31 result
=$
(git for-each-ref
--shell --format="$fmt" \
32 --sort=-authordate --count=$count refs
/heads
/)
45 list_branches
${cmd:1} ;;