Created
May 4, 2015 08:42
-
-
Save kaeff/91bde42ea2f3ab310ea9 to your computer and use it in GitHub Desktop.
A script listing the commit ranges applied during `git pull --rebase`, one line per pull in descending order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git reflog | grep -A 1 "pull --rebase: checkout" | ruby -e 'puts STDIN.each_slice(3).map {|a| a.take(2).reverse.map {|l| l.split(" ").first}.join("..") }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment