Skip to content
Newer
Older
100755 22 lines (16 sloc) 236 Bytes
1d1c510 @garybernhardt add git-what-the-hell-just-happened
authored
1 #!/bin/bash
2 set -e
3
4 ref=${1:-"HEAD"}
5
6 old=$ref@{1}
7 new=$ref
8
9 log() {
10 git log --graph --pretty=short -1 $1
11 }
12
13 echo "Old revision:"
14 log $old
15 echo
16 echo "New revision:"
17 log $new
18 echo
19 echo "Changes:"
20 git diff --stat --summary $new $old
21
Something went wrong with that request. Please try again.