git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How is working on arbitrary remote heads supposed to work in Cogito (+ PATCH)?

From
Junio C Hamano <junkio@cox.net>
Date
Jul 29, 2005, 07:48 UTC
Message-ID
<7vmzo6jbme.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050729070628.GA24895@pasky.ji.cz>
Petr Baudis <pasky@suse.cz> writes:
> Aha, so it seems our problem is hopefully only in terminology, great.
>
> So, what do you mean by "clone" here? And what command should I use for
> pushing then?
Notice I never used the word "clone" in what I said.

What I mean by "a semantically equivalent two repositories, potentially one being a strict subset of the other" is you can pull head A from one or head A from the other and can get the same result (although one may and the other may not have head B). And naturally you use send-pack for pushing.

If I "clone" from repository A to create a repository B, I would never "push back" from B to A. Instead I would ask a person who owns A to "pull from B". My impression is the patch flow in the kernel circle works like that (although I have never been in that circle).

Now, A may happen to be on my home machine and B may happen be on my notebook, meaning the owner of A and B are both myself. But even in that case I would still work by "pulling from A" when I am on B, and "pulling from B" when I am on A. In other words, "pulling" is the only patch flow mechanism I would use. Pushing is only for publication and I treat it as just a GIT-aware rsync/mirror, nothing more. I have a feeling that your workflow is different and you plan to use both push and pull for normal patch flows. This distinction is probably where the disagreement comes from.

And I strongly suspect that the primary reason that I "simply do not get it" after reading your messages is because my mental model is strongly molded into what Linus taught us. I have to unlearn things...

Previous: Petr BaudisNext: Petr Baudis
Message 19 of 41 in “How is working on arbitrary remote heads supposed to work in Cogito (+ PATCH)?”
  1. Josef WeidendorferJul 27, 2005
  2. Junio C HamanoJul 28, 2005
  3. Petr BaudisJul 28, 2005
  4. Johannes SchindelinJul 28, 2005
  5. Petr BaudisJul 28, 2005
  6. Johannes SchindelinJul 28, 2005
  7. Petr BaudisJul 28, 2005
  8. Junio C HamanoJul 28, 2005
  9. Johannes SchindelinJul 28, 2005
  10. Ryan AndersonJul 28, 2005
  11. Johannes SchindelinJul 28, 2005
  12. Petr BaudisJul 28, 2005
  13. Johannes SchindelinJul 28, 2005
  14. Matthias UrlichsJul 28, 2005
  15. Johannes SchindelinJul 28, 2005
  16. Petr BaudisJul 29, 2005
  17. Junio C HamanoJul 29, 2005
  18. Petr BaudisJul 29, 2005
  19. Junio C HamanoJul 29, 2005
  20. Petr BaudisJul 29, 2005
  21. Junio C HamanoJul 29, 2005
  22. Petr BaudisJul 29, 2005
  23. Johannes SchindelinJul 29, 2005
  24. Petr BaudisJul 29, 2005
  25. Johannes SchindelinJul 29, 2005
  26. Petr BaudisJul 29, 2005
  27. Junio C HamanoJul 30, 2005
  28. Matthias UrlichsJul 29, 2005
  29. Junio C HamanoJul 30, 2005
  30. Carl BaldwinAug 13, 2005
  31. Junio C HamanoAug 13, 2005
  32. Carl BaldwinAug 15, 2005
  33. Johannes SchindelinAug 15, 2005
  34. Josef WeidendorferJul 29, 2005
  35. Matthias UrlichsJul 28, 2005
  36. Petr BaudisJul 29, 2005
  37. Josef WeidendorferJul 28, 2005
  38. Unnamed branchesPetr Baudis, Jul 28, 2005
  39. Junio C HamanoJul 28, 2005
  40. Petr BaudisJul 28, 2005
  41. Petr BaudisJul 28, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.