Created
January 19, 2024 15:45
-
-
Save brennie/53591954ca312da11cbd0ad15ec46f78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
column -t -s$'\t' < <( | |
readarray -t BRANCHES < <(git branch --list --format "%(refname:short)") | |
for BRANCH in "${BRANCHES[@]}"; do | |
SUMMARY=$(git log --oneline -1 "${BRANCH}" --pretty="format:%s") | |
echo -e "${BRANCH}\t${SUMMARY}" | |
done | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment