Debian has a system (git-buildpackage and svn-buildpackage) that generates a source packages from a git or SVN repository by converting commit in the Debian branch to a quilt series, and updating the changelog. The Debian kernel is packaged that way.