summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-04-01 10:47:04 -0700
committerelijah <elijah@riseup.net>2015-04-01 10:47:04 -0700
commit88e39eaa6bd0264900748284c5c6240b8bd4c7df (patch)
treef52964e8bca19c04ea4a33713179e23d97703dc1
parentf067e2bb0252693fc473f7f34d55b45518698afa (diff)
added notes about git ranges.
-rw-r--r--pages/docs/platform/guide/environments.md6
1 files changed, 6 insertions, 0 deletions
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