Skip to content

Commit

Permalink
add git-what-the-hell-just-happened
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Aug 23, 2011
1 parent 7a5b996 commit 1d1c510
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions bin/git-what-the-hell-just-happened
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/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

0 comments on commit 1d1c510

Please sign in to comment.