Hi. I'm here to plug dgit, which is a tool (and infrastructure) for
-treating the Debian archive something like a git remote.
+treating the Debian archive like a git remote.
I'm going to talk for about 35 minutess and then I'll take questions.
I'm going to start by presenting dgit from the point of view of
everyone else: NMUers, sponsorship, teams doing cross-archive work
-(eg, transitions, reproducible builds), bug squashers, and so on.
+like transitions and reproducible builds, bug squashers, downstreams,
+users, and so on.
The point of dgit is that it lets you treat the archive as if it were
exactly the same as dpkg-source -x.
You can then work on the package in git, the way you would work in git
-with any other project. In particular:
+with any other project. In particular, you can:
* commit on your local branch
- * cherry pick
+ * cherry pick changes from other branches
* git reset, git clean
- * git-rebase -i to polish your changes
+ * git rebase -i to polish a more complex set of changes into
+ a patch queue
If you want so share your work-in-progress with others, you can git
-push the branch anywhere where they will be able to fetch it.
+push your branch anywhere where they will be able to fetch it.
-If you are a DD (or a DM for the package) you can also dgit push the
-package. (Currently you still need to do a source package build.)
-
-
-Because dgit knows that your git tree is canonical, it can help you
-work around strangely behaved package clean targets: you can instruct
-dgit to use git clean rather than running the package's clean target.
+If you have the right authority you can also dgit push, to upload
+(after doing a build).
dgit is not a replacement for existing git packaging tools; it's
intended to complement them. So (unlike git-dpm) dgit does not define
a git history structure, and (unlike git-buildpackage) it does not
-define a branch structure. Nor does it require use of particular
-source formats.
+define a branch structure. Nor does it require a particular source
+format.
The dgit history structure is up to the maintainer. If you are doing
a straightforward NMU you should produce a well-structured linear
-sequence of commits, the way that you would for any project which is
-using git upstream. If the package is using a quilty source format,
-you should not touch debian/patches; dgit will take care of updating
-the quilt patch stack.
+sequence of commits, as you would for any git upstream. If the
+package is using a quilty source format, you should not touch
+debian/patches; dgit will take care of updating the quilt patch stack.
Unless the maintainer uses dgit, the history you see in dgit will not
be the maintainer's history. This is because maintainers' git
you are uploading is exactly the same as your git HEAD. This can
save you some dsc-based checks.
+And, of course, non-maintainer dgit users will thank you.
+
dgit push imposes only two requirements on your git trees. These stem
directly from the need for the dgit view of package to be identical to
There is nothing stopping anyone from pushing such a branch to the
archive with dgit push. But, it seems to me that the git history
-structure ought to up to the maintainer, and if the maintainer is
-choosing to use dgit, normally the maintainers's existing git history
-is more useful and interesting.
+structure ought to up to the maintainer, and if the maintainer chooses
+to use dgit, normally the maintainers's existing git history is more
+useful and interesting.
When using dgit, it is normally best to use one of dgit's build
should too.
+Many packages have strangely-behaved or plain buggy clean targets.
+Because dgit knows that your git tree is canonical, it can help work
+around this: you can tell dgit to use git clean instead, avoiding the
+package's clean target entirely.
+
+
Some maintainers' source packages contain files not in their git
branches: most commonly, autotools output. Because the point of dgit
is to provide a git view of what's actually in the archive, this does
-
- cannot
-use such a git branch
-
-people have different contents in their git branches to in their
-
-
-
-To use dgit push, there are some things you may have to do
-differently.
-
-
-
-
The point, of course, of using