summaryrefslogtreecommitdiff
path: root/yarns/implementations.yarn
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2015-06-16 20:29:57 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-09-17 15:34:08 +0000
commit84e90eee377fde3d6a901db0b38d9d39e1b5399d (patch)
tree590ea3e2376b663b88e8b239c02b9b0acd55d923 /yarns/implementations.yarn
parentf4d3cbaf1d6e5c3bdbb1b2e2c18822ecc25c1ac5 (diff)
downloadmorph-84e90eee377fde3d6a901db0b38d9d39e1b5399d.tar.gz
Make anchor yarn use defsrepo instead of workspace
Change-Id: Icec7e948c60decefe5a8bab6141bc89603c265b7
Diffstat (limited to 'yarns/implementations.yarn')
-rw-r--r--yarns/implementations.yarn14
1 files changed, 14 insertions, 0 deletions
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index ae9c2fae..4feb8f4b 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -1,6 +1,18 @@
IMPLEMENTS implementations
==========================
+Implementation sections for definitions repo
+---------------------------------------------
+
+ IMPLEMENTS GIVEN a definitions repo
+ git clone "$(cat $DATADIR/definitions-repo-url)" "$DATADIR/definitions"
+
+ IMPLEMENTS WHEN the user creates a new definitions branch (\S+), based on (\S+)
+ run_in "$DATADIR/definitions" git branch "$MATCH_1" "$MATCH_2"
+
+ IMPLEMENTS WHEN the user checks out definitions branch (\S+)
+ run_in "$DATADIR/definitions" git checkout "$MATCH_1"
+
Implementation sections for workspaces
--------------------------------------
@@ -404,6 +416,8 @@ another to hold a chunk.
--enable=receive-pack #allow push
GIT_DAEMON_PORT="$(cat "$port_file")"
+ echo "git://127.0.0.1:$GIT_DAEMON_PORT/morphs" > "$DATADIR/definitions-repo-url"
+
# Create the Morph configuration file so we can access the repos
# using test:foo URL aliases.