A (git) workflow for Debian packaging

Pierre Habouzit madcoder at madism.org
Fri Oct 5 20:12:26 UTC 2007


On Fri, Oct 05, 2007 at 07:48:28PM +0000, Manoj Srivastava wrote:
> 
>         I also have ./debian/common, a separate project, which is the
>         single location to make changes to the common package building
>         setup.
> 
>  Can git actually handle such a setup? (my understanding was that it can
>  not, but I'll be happy to be proved wrong).

  it can deal with debian/common as a git submodule. Submodules are
quite powerful. with that, you will have your common things in a
separate "common.git" repository, and your packaging will import it
through submodules. Unlike svn:externals, git records the _exact_ state
of your submodule each time you commit in the supermodule. This way, you
always have a consistent state.

>         I don't know git well enough yet to have interesting commentary
>  on the rest of the post; but if git has indeed gained the capability to
>  handle nested projects (my ./debian dirs for separate packages havce
>  little to do with the upstream software in thge packages,mbut have a
>  lot in common with each other), then it might be worth spending time to
>  learn git and move on from arch.

It does :)
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#submodules

  The pitfall with submodules is that it's a recent feature, and it's
not well integrated in the other "porcelains". For example, running
"git status" in the toplevel directory won't recurse inside submodules.
THe reason is that people disagreed on how submodules should be dealt
with, hence it has not been plumbed very deep, so that people get used
to it, and can report which behavior is efficient for them.
-- 
·O·  Pierre Habouzit
··O                                                madcoder at debian.org
OOO                                                http://www.madism.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/vcs-pkg-discuss/attachments/20071005/26e40d04/attachment.pgp 


More information about the vcs-pkg-discuss mailing list