Created
July 1, 2011 00:03
-
-
Save mrjabba/1057590 to your computer and use it in GitHub Desktop.
Log formatter for git log that's an git svn clone
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
require 'nokogiri' | |
puts "Start formatting git log to remove stuff after the @.." | |
doc = Nokogiri::HTML(open('log.xml')) | |
doc.css('event @author').each do |author| | |
name = author.content | |
author.content = name[0,name.index('@')] | |
end | |
File.open("log_formatted.xml", 'w') {|f| f.write(doc.to_xml) } | |
puts "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment