.vim/bundle: Update vim bundle submodules
[dotfiles.git] / bin / git-rel
index 7d1bf424c71989f87d2f0d92e9f0f7dd89a4463f..b157caf4b6fba1485ab7334632c795a36253ab23 100755 (executable)
@@ -32,9 +32,12 @@ ref="${1:-$(tracking_branch)}"
 
 git rev-list --left-right --abbrev-commit --abbrev $ref...HEAD |
 cut -c1         |
-sed '
+sort            |
+uniq -c         |
+tr '\n' ','     |
+sed "
   s/>/ahead/
   s/</behind/
-'               |
-sort            |
-uniq -c
+  s/,$//g
+  s/,/, /g
+"