With this option defined gbs tries to preserve the history of the
changes (since upstream) doing a convert. Basically, for each commit in
the old branch a corresponding commit in the new orphan packaging branch
is created. This works by dumping packaging files and updating patches
for each commit. However, empty commits are not generated - these are
caused e.g. by changes files that are ignored by patch-generation like
.gbs.conf.
NOTE! Only valid for the 'convert' action.
Change-Id: I669fa6732bea7940561f5c99820d6d97d14b0658
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
"--patch-export-ignore-path=^(%s/.*|.gbs.conf)" % packaging_dir]
if args.debug:
argv.append("--verbose")
+ if args.retain_history:
+ argv.append("--retain-history")
return argv
help="upstream tag format, '${upstreamversion}' is "
'expanded to the version in the spec file. '
"E.g. 'v${upstreamversion}'")
+ parser.add_argument('--retain-history', action='store_true',
+ help='Preserve as much of the git history as possible '
+ 'in the conversion, i.e. create one commit per commit. '
+ 'Only relevant for the convert action.')
parser.add_argument('action', choices=['start', 'export', 'drop', 'switch',
'convert'],
help='Action to take')