Hi.

Simon Josefsson writes ("Bug#1128473: Feature request: ask dgit to hard-fail on 
top-level .gitignore diff"):
> The --quilt= autodetect feature is really powerful.  However I've
> realized that there is no smoth way of using dgit to do what I would
> prefer, which is:
> 
> 1) Prefer --quilt=unapplied to hard-fail on upstream .gitignore diffs,
> to allow me to notice the problem and fix it.

My first question is, why is a diff to .gitignore a problem ?
IME improving the gitignore is a very routine thing to do during
packaging.  (As ever, one hopes that upstream takes the patch, at
least eventually.)

> 2) Only revert to --quilt=gbp if the last upload was made using it,
> presumably because I intend for the repository to be incompatible with
> --quilt=unapplied.

> Here is the actual problem I'm experiencing:
> 
> A) If I don't supply a --quilt= parameter, dgit will auto-detect that
> .gitignore was modified and pick --quilt=gbp silently.  Then I have no
> opportunity to fix this problem.

I don't think this is true.  The only quilt mode autodetection is in
git-debpush.  And it doesn't look at the contents of your package at
all, only metadata.

It finds the same quilt mode as you used last time.  Specifically, it
finds the last maintainer upload from the changelog (disregarding NMUs
by using Debian-specific version number rules) and looks for its
DEP-14 tag.  If that tag has dgit metadata with a quilt mode, it uses
that quilt mode by default.

If it can't figure out the last quilt mode this way, then you must
specify it on the command line.

dgit, on the other hand, doesn't do any of this.  It defaults
to --quilt=linear. 

> Is there a -Wno-error=superfluous-quilt-mode?

Yes, it's spelled  --force=superfluous-quilt-mode

> As far as I know, dgit is the only tool that makes me aware of
> .gitignore diff's in packages.

If you had adopted git-debrebase, changes that you make to the
.gitignore would turn up as quilt patches in the normal way.  But
git-debrebase isn't something you can apply to an arbitrary package.

Regards,
Ian.

-- 
Ian Jackson <[email protected]>   These opinions are my own.  

Pronouns: they/he.  If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.

Reply via email to