aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-12-03 08:11:11 +0100
committerMartin Fischer <martin@push-f.com>2026-12-04 09:11:05 +0100
commita7c41f1de23ba951da838ca24009a8399a1e1c46 (patch)
tree64c8ff38ce80317d762e4239533c2283015bac48 /README.md
initial commitHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 24 insertions, 0 deletions
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.