Browse Source

generate-git-snapshot: add DCH_LOG_RESTRICTION

DCH_LOG_RESTRICTION can be used to pass additional (path restriction)
parameters to git-dch. For example to restrict the repository path that
is looked at.

A path is for example required if debian is not a directory but a link to a
sub directory created during source package build (e.g. with
PRE_DCH_HOOK). In such a case the changelog would always
contain all commits of the repository if the path wasn't restricted.

Note: An extra parameter was chosen because DCH_OPT couldn't be used
since it isn't the last argument and overriding DCH_EXTRA_OPTS is also
not easily possible if the adjusted VERSION_STRING should be used.
tags/devuan/0.14.1+devuan6
Bernhard Miklautz 6 years ago
parent
commit
c300281515
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      scripts/generate-git-snapshot

+ 5
- 0
scripts/generate-git-snapshot View File

@@ -112,6 +112,11 @@ dch_opts() {
echo "Using extra git-dch options (${DCH_EXTRA_OPTS})"
fi
DCH_COMBINED_OPTS="${DCH_COMBINED_OPTS} ${DCH_EXTRA_OPTS}"

if [ -n "${DCH_LOG_RESTRICTION:-}" ] ; then
echo "Found environment variable DCH_LOG_RESTRICTION, set to ${DCH_LOG_RESTRICTION}"
DCH_COMBINED_OPTS="${DCH_COMBINED_OPTS} ${DCH_LOG_RESTRICTION}"
fi
}

# support overrides from gbp.conf


Loading…
Cancel
Save