#!/usr/bin/env bash
if [[ "$1" != "" ]]; then
        wccmd="wc -l"
else
        wccmd="cat -"
fi

for bname in develop-active_prediction develop-clams develop-continuum develop-firmware develop-log_test develop-perception develop-planner develop-prediction develop-scenario_editor develop-swat feature-3d_roads feature-agent_awareness_fusion feature-agent_fusion feature-ai-monitor feature-annotator feature-audio_gateway feature-black_box_first_response feature-c1r-sensor-models feature-cammux-cleanup feature-cammux2 feature-cammux_index_refactor feature-cas feature-cut-in feature-dclams-meshing feature-decouple_static_mapping feature-deepvma feature-double-parked-cars feature-dpv-oncoming feature-embedding feature-emu-rti-dds feature-follow_cut_in_parked_cars feature-framegrabber feature-geometric_planning feature-goodbye_applanixpose feature-goodbye_spindata feature-hero_vel_scale feature-hesai_pandar40p feature-kitt-11 feature-kitt-12 feature-ll3d-1.6 feature-locomofo feature-log_test_release feature-log_test_release_2017_08_28 feature-logbeast feature-luxvox feature-maybe_blocking_with_teleop feature-metanet_v3 feature-metanet_v4 feature-mobile_dispatch feature-mofo_loc_integration feature-motion-based-bicyclists feature-new_lidar_classes_8_1 feature-night_driving_q4 feature-nogo-emu feature-nogo-triggers feature-nogov2 feature-nogov2-active feature-pcp_log_tests feature-pcp_occlusion feature-ped_bike_flicker feature-perception_zci feature-planner-speed-limit-control feature-prediction_release_september26 feature-prius-llc feature-prius-pcp feature-pubsub-di feature-right_on_red feature-saruman feature-saruman_2 feature-simple_sim_agent_behavior_waypoints feature-spindata2.0 feature-swopdash_v2 feature-tds_v3_2 feature-tof_2 feature-tof_driver feature-tof_in_pcp feature-topdown_lidar_segmentation feature-unified_config_api feature-unknown_object feature-vehicle-pose-estimation feature-vh5 feature-vision-detector-v16.1 feature-vision-detector-v17 feature-vision-detector-v17-5 feature-vision-detector-v17.1 feature-vision_zci_support feature-vobstacles feature-zci-rtidds-pubsub feature-zfuse release-continuum release-perception
do
        echo $bname: $(git branch --list -a $(echo $bname | sed 's/^/origin\//;s/[-_]/?/') | $wccmd )
done | sort -k 2 -t : 
