Last active
August 29, 2015 14:25
-
-
Save nobu666/ed917292ef575e155372 to your computer and use it in GitHub Desktop.
branch名と--edit-descriptionでつけた説明を並べて表示する
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
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | sed 's|refs/heads/||'); do desc=$(git config branch.$branch.description); if [[ "$branch" == "$(git rev-parse --abbrev-ref HEAD)" ]]; then branch="* \033[0;32m$branch\033[0m"; else branch=" $branch"; fi; echo -e "$branch \033[0;36m$desc\033[0m"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment