0
@committed_date = committed_date
0
@message = message.join("\n")
0
@short_message = message[0] || ''
0
# Returns Grit::Commit (unbaked)
0
def create_initialize(repo, atts)
0
- instance_variable_set("@#{k}"
.to_sym, v)
0
+ instance_variable_set("@#{k}"
, v)
0
- # Use the id of this instance to populate all of the other fields
0
- # when any of them are called.
0
- temp = self.class.find_all(@repo, @id, {:max_count => 1}).first
0
- @parents = temp.parents
0
- @authored_date = temp.authored_date
0
- @committer = temp.committer
0
- @committed_date = temp.committed_date
0
- @message = temp.message
0
- @short_message = temp.short_message
0
+ self.class.find_all(@repo, @id, {:max_count => 1}).first
0
# Count the number of commits reachable from this ref
0
# Find all commits matching the given criteria.
0
- # +ref+ is the ref from which to begin (SHA1 or name)
0
+ # +ref+ is the ref from which to begin (SHA1 or name)
or nil for --all0
# +options+ is a Hash of optional arguments to git
0
# :max_count is the maximum number of commits to fetch
0
# :skip is the number of commits to skip
0
default_options = {:pretty => "raw"}
0
actual_options = default_options.merge(options)
0
- output = repo.git.rev_list(actual_options, ref)
0
+ output = repo.git.rev_list(actual_options, ref)
0
+ output = repo.git.rev_list(actual_options.merge(:all => true))
0
self.list_from_string(repo, output)
0
m, actor, epoch = *line.match(/^.+? (.*) (\d+) .*$/)
0
[Actor.from_string(actor), Time.at(epoch.to_i)]
0
+ 'parents' => parents.map { |p| { 'id' => p.id } },
0
+ 'name' => author.name,
0
+ 'email' => author.email
0
+ 'name' => committer.name,
0
+ 'email' => committer.email
0
+ 'authored_date' => authored_date.xmlschema,
0
+ 'committed_date' => committed_date.xmlschema,
Comments
No one has commented yet.