summaryrefslogtreecommitdiff
path: root/scripts/combo-layer.conf.example
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-03-12 17:09:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-20 11:03:10 +0000
commit74f4c9e3bcdb3c4ca919623086e92a9379bd81ff (patch)
tree9d5ba62b14ccea68239ff2f6d220c12011f9c88c /scripts/combo-layer.conf.example
parent220d816cda3c9b8d888288cc03eb74be5e71cc59 (diff)
downloadopenembedded-core-74f4c9e3bcdb3c4ca919623086e92a9379bd81ff.tar.gz
openembedded-core-74f4c9e3bcdb3c4ca919623086e92a9379bd81ff.tar.bz2
openembedded-core-74f4c9e3bcdb3c4ca919623086e92a9379bd81ff.zip
combo-layer: partial import for '--history init'
The new "since_revision" property can be used to cut off the imported history at some point. This is useful to keep the resulting repository smaller while still preserving enough history that "git annotate" reports the right author and commit for most lines. The initial, squashed import commit shows up with "unknown" as author in the "git annotate" output. It has the repository name as prefix in the subject line; importing that commit works best with a layer hook which does not add the repository name again when it is already present. Adding it here is useful for hooks which do not extend the subject line. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/combo-layer.conf.example')
-rw-r--r--scripts/combo-layer.conf.example13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/combo-layer.conf.example b/scripts/combo-layer.conf.example
index 38bc53c59f..90e2b58723 100644
--- a/scripts/combo-layer.conf.example
+++ b/scripts/combo-layer.conf.example
@@ -63,11 +63,24 @@ last_revision =
# example:
# hook = combo-layer-hook-default.sh
+# since_revision:
+# since_revision = release-1-2
+# since_revision = 12345 abcdf
+#
+# If provided, truncate imported history during "combo-layer --history
+# init" at the specified revision(s). More than one can be specified
+# to cut off multiple component branches.
+#
+# The specified commits themselves do not get imported. Instead, an
+# artificial commit with "unknown" author is created with a content
+# that matches the original commit.
+
[oe-core]
src_uri = git://git.openembedded.org/openembedded-core
local_repo_dir = /home/kyu3/src/test/oecore
dest_dir = .
last_revision =
+since_revision = some-tag-or-commit-on-master-branch
# It is also possible to embed python code in the config values. Similar
# to bitbake it considers every value starting with @ to be a python