From e8f1f03bc51d687d09eabb2950049a0b504c4918 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Oct 2016 01:36:12 +0100 Subject: [PATCH] Make --quilt=gbp the default for dgit gbp-build. Signed-off-by: Ian Jackson --- debian/changelog | 1 + dgit | 7 +++++++ dgit.1 | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e97cb3c1..c63b7e77 100644 --- a/debian/changelog +++ b/debian/changelog @@ -35,6 +35,7 @@ dgit (1.5~~) unstable; urgency=medium any Gbp-Pq headers (that we understand). * Several dgit-generated commits now have slightly better annotations from dgit about what it was doing. + * Make --quilt=gbp the default for dgit gbp-build. Infrastructure: * Better error handling in dgit-repos-policy-debian. diff --git a/dgit b/dgit index 50011cce..150c1153 100755 --- a/dgit +++ b/dgit @@ -4671,6 +4671,10 @@ sub cmd_build { printdone "build successful\n"; } +sub pre_gbp_build { + $quilt_mode //= 'gbp'; +} + sub cmd_gbp_build { my @dbp = @dpkgbuildpackage; @@ -5101,6 +5105,9 @@ if (!@ARGV) { my $cmd = shift @ARGV; $cmd =~ y/-/_/; +my $pre_fn = ${*::}{"pre_$cmd"}; +$pre_fn->() if $pre_fn; + if (!defined $rmchanges) { local $access_forpush; $rmchanges = access_cfg_bool(0, 'rm-old-changes'); diff --git a/dgit.1 b/dgit.1 index b3a4f939..13666ea4 100644 --- a/dgit.1 +++ b/dgit.1 @@ -139,6 +139,9 @@ Runs with some suitable options. Options and arguments after gbp-build will be passed on to git-buildpackage. +By default this uses \-\-quilt=gbp, so HEAD should be a +git-buildpackage style branch, not a patches-applied branch. + Tagging, signing and actually uploading should be left to dgit push. .TP \fBdgit push\fR [\fIsuite\fP] @@ -430,7 +433,7 @@ do not want your branch changed by dgit. is for use with git-buildpackage. Your HEAD is expected to be a patches-unapplied git branch, except that it might contain changes -to upstream .gitignore files. +to upstream .gitignore files. This is the default for dgit gbp-build. .B --quilt=dpm is for use with git-dpm. -- 2.30.2