config: Allow a default refspec to be specified
Also update config file version to 9 due to this format change. Signed-off-by: Paul Barker <pbarker@konsulko.com> [Jan: style fix] Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
@@ -75,3 +75,13 @@ Added
|
||||
|
||||
- ``patches`` property to ``repos`` to be able to apply additional patches to
|
||||
the repo.
|
||||
|
||||
Version 9
|
||||
---------
|
||||
|
||||
Added
|
||||
~~~~~
|
||||
|
||||
- ``defaults`` key can now be used to set a default value for the repository
|
||||
property ``refspec``. This default value will be used if the appropriate
|
||||
property is not defined for a given repository.
|
||||
|
@@ -310,6 +310,22 @@ Configuration reference
|
||||
* ``file``: string [required]
|
||||
The path to the file relative to the root of the repository.
|
||||
|
||||
* ``defaults``: dict [optional]
|
||||
This key can be used to set default values for various properties.
|
||||
This may help you to avoid repeating the same property assignment in
|
||||
multiple places if, for example, you wish to use the same refspec for
|
||||
all repositories.
|
||||
|
||||
* ``repos``: dict [optional]
|
||||
This key can contain default values for some repository properties.
|
||||
If a default value is set for a repository property it may still be
|
||||
overridden by setting the same property to a different value in a given
|
||||
repository.
|
||||
|
||||
* ``refspec``: string [optional]
|
||||
Sets the default ``refspec`` property applied to all repositories that
|
||||
do not override this.
|
||||
|
||||
* ``machine``: string [optional]
|
||||
Contains the value of the ``MACHINE`` variable that is written into the
|
||||
``local.conf``. Can be overwritten by the ``KAS_MACHINE`` environment
|
||||
|
Reference in New Issue
Block a user