From 88e39eaa6bd0264900748284c5c6240b8bd4c7df Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 1 Apr 2015 10:47:04 -0700 Subject: added notes about git ranges. --- pages/docs/platform/guide/environments.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/docs/platform/guide/environments.md b/pages/docs/platform/guide/environments.md index 67d8ace..752e060 100644 --- a/pages/docs/platform/guide/environments.md +++ b/pages/docs/platform/guide/environments.md @@ -67,3 +67,9 @@ The available options are `platform.version`, `platform.branch`, or `platform.co } You can use any combination of `version`, `branch`, and `commit` to specify the binding. The values for `branch` and `commit` only work if the `leap_platform` directory is a git repository. + +The value for `commit` is passed directly through to `git log` to query for a list of acceptable commits. See [[man gitrevisions => https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html#_specifying_ranges]] to see how to specify ranges. For example: + +* `HEAD^..HEAD` - current commit must be head of the branch. +* `3172444652af71bd771609d6b80258e70cc82ce9..HEAD` - current commit must be after 3172444652af71bd771609d6b80258e70cc82ce9. +* `refs/tags/0.6.0rc1..refs/tags/0.6.0rc2` - current commit must be after tag 0.6.0rc1 and before or including tag 0.6.0rc2. \ No newline at end of file -- cgit v1.2.3