diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2015-03-12 17:09:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-20 11:21:24 +0000 |
commit | e0d3cabc5a25c611531e66b80a4d372f76e2b828 (patch) | |
tree | 8f9a473be04978c81fd6417e2daf7cf9cd178f9e /scripts/combo-layer.conf.example | |
parent | 14eac2a474f5fb347312b7257cc385d495a06c2d (diff) | |
download | poky-e0d3cabc5a25c611531e66b80a4d372f76e2b828.tar.gz |
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.
(From OE-Core rev: 74f4c9e3bcdb3c4ca919623086e92a9379bd81ff)
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/combo-layer.conf.example')
-rw-r--r-- | scripts/combo-layer.conf.example | 13 |
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 = | |||
63 | # example: | 63 | # example: |
64 | # hook = combo-layer-hook-default.sh | 64 | # hook = combo-layer-hook-default.sh |
65 | 65 | ||
66 | # since_revision: | ||
67 | # since_revision = release-1-2 | ||
68 | # since_revision = 12345 abcdf | ||
69 | # | ||
70 | # If provided, truncate imported history during "combo-layer --history | ||
71 | # init" at the specified revision(s). More than one can be specified | ||
72 | # to cut off multiple component branches. | ||
73 | # | ||
74 | # The specified commits themselves do not get imported. Instead, an | ||
75 | # artificial commit with "unknown" author is created with a content | ||
76 | # that matches the original commit. | ||
77 | |||
66 | [oe-core] | 78 | [oe-core] |
67 | src_uri = git://git.openembedded.org/openembedded-core | 79 | src_uri = git://git.openembedded.org/openembedded-core |
68 | local_repo_dir = /home/kyu3/src/test/oecore | 80 | local_repo_dir = /home/kyu3/src/test/oecore |
69 | dest_dir = . | 81 | dest_dir = . |
70 | last_revision = | 82 | last_revision = |
83 | since_revision = some-tag-or-commit-on-master-branch | ||
71 | 84 | ||
72 | # It is also possible to embed python code in the config values. Similar | 85 | # It is also possible to embed python code in the config values. Similar |
73 | # to bitbake it considers every value starting with @ to be a python | 86 | # to bitbake it considers every value starting with @ to be a python |