From 494e83231d91309be91c930e36a282a63245793b Mon Sep 17 00:00:00 2001 From: Romain Dartigues Date: Wed, 4 Sep 2019 15:50:47 +0200 Subject: [PATCH] Add br: list branches along their description --- gitalias.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitalias.txt b/gitalias.txt index 7047cd88..ce3a2aa2 100644 --- a/gitalias.txt +++ b/gitalias.txt @@ -107,6 +107,9 @@ # branch - edit the description be = branch --edit-description + # list branches along with their description + 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" + # branch and only list branches whose tips are reachable from the specified commit (HEAD if not specified). bm = branch --merged