checkout_tree


Description:

public bool checkout_tree (Object? tree, CheckoutOptions? options) throws Error

Update files in the working tree to reflect the contents of the specified commit, tag or tree object.

If tree is null, then the current HEAD of the repository will be used. If options is null, then the default checkout options will be used.

If the checkout was not successfull, then throws will be set.

Parameters:

this

a Repository.

tree

a Object or null.

options

a CheckoutOptions or null.

Returns:

true if the checkout was successfull, false otherwise.