rpm: support squashing commits in patch generation
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 12 Jun 2012 07:42:41 +0000 (10:42 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:45:07 +0000 (14:45 +0200)
commite3a9f6ddd6ae841ad0396f0e6602ac87e1ef8ca1
tree180a75cb77aefd0fa096a3edf913a32d694a95bd
parentf7861c586cdf41c50e8478047d7606650d10e693
rpm: support squashing commits in patch generation

Implements an option for git-buildpackage-rpm and gbp-pq to squash
commits (from upstream) up to certain tree-ish into one monolithic diff.
Useful e.g. if you wan't to auto-generate a stable update patch.

The new format of the cmdline option filename is commit-ish followed by
(optionally) a colon and the desired diff filename base. Suffix '.diff'
is added by GBP.

Magic word 'HEAD' translates to the end-commit when given as the
squash-point.  This allows one to configure gbp to always squash all
commits into one monolithic diff.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp-rpm.conf
gbp/config.py
gbp/scripts/buildpackage_rpm.py
gbp/scripts/pq_rpm.py