Skip to content

Instantly share code, notes, and snippets.

@robmerrell
Created January 1, 2011 00:29
Show Gist options
  • Save robmerrell/761454 to your computer and use it in GitHub Desktop.
Save robmerrell/761454 to your computer and use it in GitHub Desktop.
begin
# group info for the commit
repo_info = {
:repo => repo_name,
:author => commit.author,
:committer_name => commit.committer,
:date => commit.commit_timestamp,
:message => commit.message,
:diff_patch => commit.diff,
:diff_files => commit.diff_files,
:slug => "slug"
}
# store log info on IndexTank
repos_index.document(commit.sha).add(repo_info, :variables => { 0 => commit.commit_timestamp })
rescue
puts "failed to store: #{commit.sha}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment