# treeimp `treeimp` vendors directories (imports trees) from remote Git repositories. Sources and destinations are declared in `treeimp.nix`; each source may also be transformed by a Nix function before it is copied into place. Run `treeimp init` to create an example configuration: ```nix { example = { url = "https://git.example.com/example.git"; ref = "main"; source = "path/to/directory"; destination = "vendor/example"; transform = source: source; }; } ``` Run `treeimp sync` to import the configured sources. For each source, `treeimp.lock` records the last commit that changed its configured source directory, along with that commit's date in UTC. Commits that do not change the configured source directory leave the lock entry and destination unchanged.