Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ethomson
Copy link
Member

This backports the following changes to the 0.24 maintenance branch:

  • TreeDefinition.Add can now add a blob to a tree when given a blob ID.
  • ObjectDatabase.Write can now write a stream to the object database.

@ethomson ethomson changed the base branch from master to maint/v0.24 November 29, 2017 17:31
@ethomson ethomson force-pushed the ethomson/0241_backports branch from afbf0c9 to 27de700 Compare November 29, 2017 17:32
Update the method documentation for `ObjectDatabase.Write` to be
consistent with the other methods.
Test that we can `ObjectDatabase.Write` a blob.
Provide a mechanism to write a stream directly to an object database.
Allow consumers to add a blob to a `TreeDefinition` by specifying only
the object ID and mode.  This lets users build tree entries without
having to create a `Blob` object (and thus load the object itself)
which is beneficial for users building trees with large objects.

This is only useful for Blobs, since they do not need to be fetched from
the object database to be realized within the tree builder.  Users are
not able to add Trees by ID, since we would need to load them (and
cannot, since we are not guaranteed to be instantiated within the
context of a repository).
Include `TreeDefinition.Add` by Object ID.
Include `ObjectDatabase.Write` to write a stream.
@ethomson ethomson force-pushed the ethomson/0241_backports branch from 27de700 to c85f98c Compare November 29, 2017 17:50
@ethomson ethomson merged commit 9a0a9e7 into maint/v0.24 Nov 29, 2017
@ethomson ethomson deleted the ethomson/0241_backports branch February 15, 2019 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant