git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git workflow for fully distributed mini-teams
@ 2009-09-16  7:35 Rustom Mody
  2009-09-16 16:43 ` Nicolas Sebrecht
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2009-09-16  7:35 UTC (permalink / raw)
  To: Git Mailing List

I am trying to formulate (and understand) what it means to have a
fully-distributed mini team workflow with git.

By fully distributed I mean theres no central repo -- not for pushing
or even pulling; all communication is by email.
By mini-team I mean: Not more than 5 programmers.

Heres a typical scenario.

There are 3 programmers A B and C who communicate by email who have
started off from the same code base.

A's branches: dev, master, B, C
B's branches: dev, master, A, C
C's branches: dev, master, A, B

A's best practices (and invariants) are:
I (ie A) develop on dev (or other topic branches).
I only merge onto master; never commit.
I never work on nor merge onto B and C.
When B sends me patches I apply them to the B branch likewise for C.
Thereafter I merge that branch onto dev or master.
There are no tracking branches because there are no remotes -- no
central repo. [not clear about this]

B and C have corresponding practices/behavior.

So the questions...

Is there a better way of doing things?
Can some of these practices/invariants be enforced by scripts/options etc?
What about checkpointing and restoring from botches?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: git workflow for fully distributed mini-teams
  2009-09-16  7:35 git workflow for fully distributed mini-teams Rustom Mody
@ 2009-09-16 16:43 ` Nicolas Sebrecht
  2009-09-17  7:03   ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Sebrecht @ 2009-09-16 16:43 UTC (permalink / raw)
  To: Rustom Mody; +Cc: Git Mailing List, Nicolas Sebrecht

The 16/09/09, Rustom Mody wrote:
> 
> A's best practices (and invariants) are:
> I (ie A) develop on dev (or other topic branches).
> I only merge onto master; never commit.
> I never work on nor merge onto B and C.
> When B sends me patches I apply them to the B branch likewise for C.
> Thereafter I merge that branch onto dev or master.
> There are no tracking branches because there are no remotes -- no
> central repo. [not clear about this]
> 
> B and C have corresponding practices/behavior.
> 
> So the questions...
> 
> Is there a better way of doing things?
> Can some of these practices/invariants be enforced by scripts/options etc?

What's may be hard here is about "releasing topic". With a "maintainer
oriented workflow", the status of each topic is clear (either "won't
merge as is, needs more work" or "should be good enough, is merged and
aims to be in the next release").

In the fully-distributed workflow you describe, the state of the topics
looks hard to know. Who releases what is not clear.

Also, I see a duplication of the same work for all the developers in a
team: "merge my topics with topics from others". This could be solved
with one more common repository wich could stand as a "virtual
maintainer repository" where each developer could release any topic.
Topics that don't need any more work would have to be merged in a
dedicated public branch ("next"?) for testing, and topics that aren't
good enough into another dedicated branch ("pu"?). So, each developer
would have to push publishable merges into this repository. This way,
everyone could use the merges done by another developer (by doing a
fetch and rebasing of his current work on top of it).

Notice that this is all about "everybody uses the same base for his
current work" (to avoid per-developer scratch on merges) and "don't let
everyone do the same work on his own" (to avoid duplicate work).

> What about checkpointing and restoring from botches?

I think this is be easily doable (against your described workflow) with
good conventions in branch names. Topics like "pending-topicA",
"pending-topicB", etc that would have to be merged (using a script) into
a "all pending topics" branch should do what you want, no?  Restoring
from botches would mean removing the crappy branch and re-execute the
script.

Hope this helps.

-- 
Nicolas Sebrecht

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: git workflow for fully distributed mini-teams
  2009-09-16 16:43 ` Nicolas Sebrecht
@ 2009-09-17  7:03   ` Rustom Mody
  2009-09-17  7:28     ` Johannes Sixt
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2009-09-17  7:03 UTC (permalink / raw)
  To: Git Mailing List

Rustom Mody wrote:
> By fully distributed I mean theres no central repo -- not for pushing
> or even pulling; all communication is by email.
> By mini-team I mean: Not more than 5 programmers.

On Wed, Sep 16, 2009 at 10:13 PM, Nicolas Sebrecht <nicolas.s.dev@gmx.fr> wrote:
>
>
> Also, I see a duplication of the same work for all the developers in a
> team: "merge my topics with topics from others". This could be solved
> with one more common repository wich could stand as a "virtual
> maintainer repository" where each developer could release any topic.
> Topics that don't need any more work would have to be merged in a
> dedicated public branch ("next"?) for testing, and topics that aren't
> good enough into another dedicated branch ("pu"?). So, each developer
> would have to push publishable merges into this repository. This way,
> everyone could use the merges done by another developer (by doing a
> fetch and rebasing of his current work on top of it).

Push? Fetch? How without a common repo?  [Sorry if this is totally noob!]
>
> Notice that this is all about "everybody uses the same base for his
> current work" (to avoid per-developer scratch on merges) and "don't let
> everyone do the same work on his own" (to avoid duplicate work).
>
>> What about checkpointing and restoring from botches?
>
> I think this is be easily doable (against your described workflow) with
> good conventions in branch names. Topics like "pending-topicA",
> "pending-topicB", etc that would have to be merged (using a script) into
> a "all pending topics" branch should do what you want, no?  Restoring
> from botches would mean removing the crappy branch and re-execute the
> script.

I am really concerned about things like:

A commited something on the B branch, received a patch from B. That
patch did not apply (or worse it applied -- on top of A's!)
So ideally there should be an option that says (when A is on B branch
and tries to commit) "Sorry buddy -- No commits here!"

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: git workflow for fully distributed mini-teams
  2009-09-17  7:03   ` Rustom Mody
@ 2009-09-17  7:28     ` Johannes Sixt
  2009-09-17 12:38       ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Johannes Sixt @ 2009-09-17  7:28 UTC (permalink / raw)
  To: Rustom Mody; +Cc: Git Mailing List

Rustom Mody schrieb:
> I am really concerned about things like:
> 
> A commited something on the B branch, received a patch from B. That
> patch did not apply (or worse it applied -- on top of A's!)
> So ideally there should be an option that says (when A is on B branch
> and tries to commit) "Sorry buddy -- No commits here!"

I think the most important thing would be that you send bundles around,
not patches, so that you all can work with and talk about unique object names.

-- Hannes

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: git workflow for fully distributed mini-teams
  2009-09-17  7:28     ` Johannes Sixt
@ 2009-09-17 12:38       ` Rustom Mody
  2009-09-17 13:52         ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2009-09-17 12:38 UTC (permalink / raw)
  To: Git Mailing List

On Thu, Sep 17, 2009 at 12:58 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> I think the most important thing would be that you send bundles around,
> not patches, so that you all can work with and talk about unique object names.
>
> -- Hannes

Thats what we need -- thanks a  'bundle'!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: git workflow for fully distributed mini-teams
  2009-09-17 12:38       ` Rustom Mody
@ 2009-09-17 13:52         ` Rustom Mody
  2009-09-17 14:47           ` Johannes Sixt
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2009-09-17 13:52 UTC (permalink / raw)
  To: Git Mailing List

On Thu, Sep 17, 2009 at 6:08 PM, Rustom Mody <rustompmody@gmail.com> wrote:
> On Thu, Sep 17, 2009 at 12:58 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
>> I think the most important thing would be that you send bundles around,
>> not patches, so that you all can work with and talk about unique object names.
>>
>> -- Hannes

I started looking at git bundle and find things like master\~10.
Whats the backslash doing?

Tried running git bundle create with and without the backslash -- it
produced the same bundle.

Looked up tilde-expansion in bash and I gather bash does things to the
~ only on beginning of words whereas as far as I can see git uses ~
only at the end of words like master.

What am I missing?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: git workflow for fully distributed mini-teams
  2009-09-17 13:52         ` Rustom Mody
@ 2009-09-17 14:47           ` Johannes Sixt
  2009-09-18  7:01             ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Johannes Sixt @ 2009-09-17 14:47 UTC (permalink / raw)
  To: Rustom Mody; +Cc: Git Mailing List

[On this list, we reply to all, so that the Cc list remains]

Rustom Mody schrieb:
> I started looking at git bundle and find things like master\~10.
> Whats the backslash doing?

It's intended as markup for the pipeline that generates the documentation
from git-bundle.txt. Either the markup is incorrect, or there is a bug in
the pipeline, because I only see it in the generated HTML. Ignore it.

-- Hannes

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: git workflow for fully distributed mini-teams
  2009-09-17 14:47           ` Johannes Sixt
@ 2009-09-18  7:01             ` Rustom Mody
  0 siblings, 0 replies; 8+ messages in thread
From: Rustom Mody @ 2009-09-18  7:01 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Git Mailing List

On Thu, Sep 17, 2009 at 8:17 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> [On this list, we reply to all, so that the Cc list remains]
>
> Rustom Mody schrieb:
>> I started looking at git bundle and find things like master\~10.
>> Whats the backslash doing?
>
> It's intended as markup for the pipeline that generates the documentation
> from git-bundle.txt. Either the markup is incorrect, or there is a bug in
> the pipeline, because I only see it in the generated HTML. Ignore it.

Seems to be there in my git-bundle.txt as well as git-bundle.html.
So its probably the markup not the pipeline.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-18  7:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-16  7:35 git workflow for fully distributed mini-teams Rustom Mody
2009-09-16 16:43 ` Nicolas Sebrecht
2009-09-17  7:03   ` Rustom Mody
2009-09-17  7:28     ` Johannes Sixt
2009-09-17 12:38       ` Rustom Mody
2009-09-17 13:52         ` Rustom Mody
2009-09-17 14:47           ` Johannes Sixt
2009-09-18  7:01             ` Rustom Mody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).