Subject: [StGit] push/pull stacked patches

From: Kurt Harriman <[email-masked]>
Date: Thu, 26 Nov 2009 04:17:38 -0800

Suppose two developers are collaborating on a series of patches.
What is the best way to synchronize their repositories, including
the StGit state?

Even if both repositories are StGit-enabled, the patch metadata
and unapplied patches don't seem to be transferred by push/pull.

Applied patches are transferred as ordinary commits, losing
their patch names and their place in the patch stack.
It seems that a remote branch cannot have a patch stack.

Instead of using push/pull, a patch series can be transferred
using stg export/import, but this is error-prone, requiring
extra steps, and changes the commit timestamp and SHA1.
Stg export/import are good for distributing the final version
of a patch series; but ungitly for back-and-forth collaboration.
Is there a better way?