summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-02-22 09:14:26 -0300
committerThibault Saunier <tsaunier@igalia.com>2018-03-20 09:22:19 -0300
commit8f5533c1e1c9ee49c99f2d877a2d721d7a165f61 (patch)
tree4cb40f23703825619e5b8981a8b80044328d3d4e /README.md
parent2136763eb47b306b1268c3381af654c588d11ec7 (diff)
downloadgstreamer-8f5533c1e1c9ee49c99f2d877a2d721d7a165f61.tar.gz
Add a script to checkout a worktree of gst-build and its subprojects
https://bugzilla.gnome.org/show_bug.cgi?id=794519
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0719aca819..ae28e1d7cc 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,20 @@ Run a specific test from a specific test file:
GST_CHECKS=test_subbuffer meson test -C build/ --suite gstreamer gst_gstbuffer
```
+## Checkout another branch using worktrees
+
+If you need to have several versions of GStreamer coexisting (eg. `master` and `1.14`),
+you can use the `checkout-branch-worktree` script provided by `gst-build`. It allows you
+to create a new `gst-build` environment with new checkout of all the GStreamer modules as
+[git worktrees](https://git-scm.com/docs/git-worktree).
+
+For example to get a fresh checkout of `gst-1.14` from a `gst-build` in master already
+built in a `build` directory you can simply run:
+
+```
+./checkout-branch-worktree ../gst-1.14 1.14 -C build/
+```
+
## Add information about GStreamer development environment in your prompt line
### Bash prompt