commit.rb revision 03dee28977299b4b40210d9b7842bf85c136ab7d
# depends on GitRepository
# delete a single file and commit the change
end
# add a single file and commit the change
end
# change a single file and commit the change
# save current head oid in case of an emergency
# Entry
entry = {
type: :blob,
filemode: 0100644
}
end
# TreeBuilder
# Commit Sha
if @repo.empty?
else
end
rescue => e
if old_head
else
end
raise e
=end
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
[]
else
end
end
end