#!/usr/bin/bash
version=${$1:v2}
git log --oneline $version

echo "formatted branch updates"
git branch --format="%(HEAD) %(align:25,left)%(refname:short)%(end) %(color:blue)%(upstream:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset)) %(contents:subject)"
echo "next"
echo "last updates"
git branch --sort=-committerdate \
 --format="%(refname:short) (%(committerdate:relative))"
