-
-
Save cararemixed/1098739 to your computer and use it in GitHub Desktop.
you want to know the commits that never made it into svn
This file contains 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
# usage: | |
# git log | ruby not_in_svn.rb | less | |
# license: Apache 2.0 | |
# copyright: J Chris Anderson 2011 | |
# this might be too trivial to copyright | |
buffer = [] | |
while(line = gets) | |
if line.match(/^commit/) | |
puts buffer, "\n" unless buffer.any? {|x| x =~ /git-svn/} | |
buffer.clear | |
end | |
buffer << line | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment