Russ Allbery [23/Feb 10:38am -08] wrote:
> What git-debrebase does under the hood is quite complex, but you can
> mostly ignore it. The UI it exposes to you is that you can commit changes
> to upstream source normally, as with any other Git repository, and when
> you build the source package, all your upstream changes will be broken out
> into separate patches in debian/patches using the commit message as the
> patch header. Most of the time, the only constraint you have to follow is
> to make sure to never make a single Git commit that changes both Debian
> packaging files and the upstream source.

No, it's fine to make a change to both, git-debrebase will split them.

The only hard constraint is that the *very first* commit you make should
touch debian/ only, as explained in that manpage.

> There are more details about rebases and whatnot in the man page.
>
> If you do take that approach, I also recommend:
>
>     git config --add --local dgit.default.split-view always
>
> which tells dgit to not commit debian/patches to your main working branch
> or expose it on Salsa. It's still present in the dgit view of your
> repository as uploaded, so that the dgit view matches the source package,
> but that way you don't have the output-only clutter of the broken-out
> patches in your working directory and don't have to remember to not touch
> those files.

Maybe we should have that in the workflow manpage?  WDYT?

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature

Reply via email to