commit.rb revision a2b3d5bb602a9a0d970b6640948f1d7d75ce78bf
# depends on GitRepository
end
end
#Entry
entry = {
type: :blob,
filemode: 33188
}
end
# TreeBuilder
if @repo.empty?
else
end
# Commit Sha
if @repo.empty?
else
end
# TODO: Use those model operations in the correct place:
#touch
#push = build_push(user)
#commit = build_commit(user, push, rugged_commit)
end
if tree
tree.each do |e|
end
if old_entry
else
end
else
if path_parts.size == 1
else
bt_tree(builder, entry, nil, path_parts)
end
end
elsif path_parts.size == 1
else
bt_tree(builder, entry, nil, path_parts)
end
builder.reject! do |e|
end
end
tree_entry = {
type: :tree,
filemode: 16384
}
end
if entry
else
builder.reject! { |e| e[:name] == path_parts.first }
end
end
if @repo.empty?
[]
else
[head_oid]
end
end
Commit.new(author_email: rugged_commit.author[:email], author_name: rugged_commit.author[:name], author_time: rugged_commit.author[:time],
committer_email: rugged_commit.committer[:email], committer_name: rugged_commit.committer[:name], committer_time: rugged_commit.committer[:time],
push: push, commit_hash: rugged_commit.oid, message: rugged_commit.message, parents: get_parents(rugged_commit))
end
# TODO: Insert this model operation in the correct place:
#def build_push(user)
# Push.new(push_type: 'web', author: user, repository: self)
#end
[]
else
end
end
end