From a7c41f1de23ba951da838ca24009a8399a1e1c46 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 3 Dec 2026 08:11:11 +0100 Subject: initial commit --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..fb9f05a --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# 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. -- cgit v1.3.1