class Git::Commands::WriteTree
Implements the ‘git write-tree` command
Creates a tree object using the current index and prints the SHA-1 name of the new tree object to standard output. The index must be in a fully merged state.
@example Write the current index as a tree object
write_tree = Git::Commands::WriteTree.new(execution_context) result = write_tree.call sha = result.stdout # => "abc123..."
@example Write only a subdirectory as a tree object
write_tree = Git::Commands::WriteTree.new(execution_context) result = write_tree.call(prefix: 'lib/')
@example Allow missing objects in the object database
write_tree = Git::Commands::WriteTree.new(execution_context) result = write_tree.call(missing_ok: true)
@note ‘arguments` block audited against git-scm.com/docs/git-write-tree/2.53.0
@see git-scm.com/docs/git-write-tree git-write-tree
@see Git::Commands
@api private