Checkout a commit Change the head to the given commit.
The hash of the commit
Commit a snapshot Commit the given data. The commit is derived from the current head.
The data to commit
The hash value of the commit
Create a commit with the given targets and data This method creates a commit with multiple parents. In most cases, it is easier to use the commit() method.
The hashes of the parent commits
The data to commit
The hash value of the commit
Create a full clone of the repository
Get the head commit The head commit is the latest commit in the repository. When the repository is created, the head is null.
The head commit or null
Get the data of a snapshot by its hash
The hash of the snapshot
The data of the snapshot
Get the data of a snapshot by the commit hash
The hash of the commit
The data of the snapshot
Merge the targets with the resolver Merge multiple commits and commit the result. The failure of the merge is indicated by the Resolver throwing an exception.
The hashes of the commits to merge
The resolver to merge the commits
The hash value of the commit
Pull commits and snapshots from another repository by last known commit hash
Another ObjectVersionControl instance
Pull commits and snapshots from another repository
Push commits and snapshots to another repository by last known commit hash
Another ObjectVersionControl instance
The last known commit hash
Push commits and snapshots to another repository
Create a shallow clone of the repository
Static
createCreate an ObjectVersionControl instance
ObjectVersionControl instance
ObjectVersionControl class
Remarks
This class is a version control system for objects. Like Git, it stores snapshots and commits. It can hold multiple commits like Git, and it is also possible to merge between commits. Unlike Git,