Skip to content

Commit 494e832

Browse files
Add br: list branches along their description
1 parent a67f444 commit 494e832

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitalias.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@
107107
# branch - edit the description
108108
be = branch --edit-description
109109

110+
# list branches along with their description
111+
br = !"f(){(git branch -v \"${@}\"|sed 's/\\(.\\) \\([^ ]*\\)\\(.*\\)/\\2\\1 \\3/'&&git config --get-regexp ^branch.*description|sed '/^$/d;s/^branch\\.\\([^ ]*\\)\\.description /\\1# /')|sort -h;};f"
112+
110113
# branch and only list branches whose tips are reachable from the specified commit (HEAD if not specified).
111114
bm = branch --merged
112115

0 commit comments

Comments
 (0)