Skip to content

Commit

Permalink
Add br: list branches along their description
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed Sep 5, 2019
1 parent a67f444 commit 494e832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 494e832

Please sign in to comment.