dotfiles/dotfiles/.local/bin/git-what-the-hell-just-happened
Fernando Schauenburg 46efe2b268 Put all dotfiles into one "stow package"
This makes installation a lot easier, as we just need to type:

    stow -v dotfiles

instead of installing multiple packages and risking to forget something.
2019-02-18 23:19:28 +01:00

21 lines
236 B
Bash
Executable file

#!/bin/bash
set -e
ref=${1:-"HEAD"}
old=$ref@{1}
new=$ref
log() {
git log --graph --pretty=short -1 $1
}
echo "Old revision:"
log $old
echo
echo "New revision:"
log $new
echo
echo "Changes:"
git diff --stat --summary $new $old