merged snapshot.rb into git.rb