Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 2.31 KB

README.md

File metadata and controls

66 lines (42 loc) · 2.31 KB

Twig

The twig tool is a low-level plumbing utility. It provides access to various utilities that do not fit in the other tools. It can be seen as a small brother to branch (hence the name).

Twig works using subcommands, of which the following are available:

  • odb: Interact with the object database in a low-level way

  • tree: Work with trees

Tip

Twig assumes the acacia directory to exist at the current user's home (~/.acacia). This behavior can be changed by using the --home <ACACIA_HOME> option to steer twig to another acacia directory.

Tip

Normally, twig will not print much information about the inner workings, this can be changed by the -v {0;1;2;3} flag, where increasing numbers increase the verbosity of the program.

Object database access (twig odb)

The twig odb command has the following subcommands:

Retrieving objects from the object database

This subcommand facilitates retrieving object contents from the object database.

twig odb get [--output <FILE>] <OID>

Tip

By default, this command outputs the contents of the objects to STDOUT. This behavior can be changed by using the --output <FILE> option. This puts the contents of the object into <FILE>.

Inserting objects into the object database

This subcommand facilitates inserting new objects into the object database.

twig odb put [--compression {none;xz}] [--force] <PATH>

Tip

Normally, twig checks for an already existing object in the database. The --force flag will force twig to overwrite the existing object.

Pulling objects from another object database

This subcommand allows a user to pull (fetch) objects from another object database into the current local one.

twig odb pull [OPTIONS] --other <OTHER> <OBJECT>

Tip

Normally, twig will not fetch dependencies, but using the --recursive/-r this can be achieved

Tree utilities (twig tree)