add 'g hist'

This commit is contained in:
William Hilton 2019-04-05 14:51:15 -04:00
parent 6bf7709865
commit fd88c58e90
2 changed files with 7 additions and 0 deletions

6
bin/g
View file

@ -508,6 +508,12 @@ git log --color \
echo ''
;;
hist)
git reflog HEAD@{now} --date=relative \
|awk '$5 ~ /checkout:/ { sub(/HEAD@/, "", $2); sub(/:/, "", $4); if (!seen[$10]++) print $10, $2, $3, $4}'
echo ''
;;
submodule)
CWD=$(pwd)
gitroot=$(git_root)