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

Re: My Itchlist

From
Junio C Hamano <junkio@cox.net>
Date
Aug 6, 2005, 19:04 UTC
Message-ID
<7voe8a6g5a.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0508060846050.12882@wgmdd8.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 5 quoted lines
> I think that we need a method to do a push in reverse: If a central 
> repository has several branches, I might want to pull just those branches 
> where the local head is a strict parent of the remote side, and get 
> complains for the others. And maybe reference naming comes as a freebie 
> with that.

I can first run "git ls-remote" to discover what are available heads and tags, and choose to "git fetch" without actually merging nor touching my references if I did not want to. I could then attempt to "git resolve" offline, and if it results in a real merge, not fast forward, and if I am in a hurry and do not want to risk merging without thinking, I can just keep my head and defer the merging part. I think that is what you are getting at by "pull only when local is a strict parent of the remote".

It is really the matter of where the ancestry computation happens. You seem to think you would want to do it on the central server side, but I tend to think that should be done on the puller's side, like I outlined above. There are two reasons:

 (1) as you mentioned in a separate topic, the current
     upload-pack/fetch-pack protocol pair seems to put a
     nontrivial burden on the server side.  I'd prefer to have
     the client side do more work.
 (2) You are interested in that remote branch, so while you may
     not want to merge the upstream changes into the branch you
     have your local modifications right away, it is likely you
     eventually will.  Fetching the objects would not be a
     wasted traffic.

What Linus said makes a lot of sense to me. While the current "git fetch" user interface captures a commonly used pattern of fetching a single remote reference and optionally storing that remote reference as a local reference under refs/heads, it is cumbersome to use when you want to slurp objects needed for multiple remote references and not store the references themselves anywhere.

Previous: Johannes SchindelinNext: Petr Baudis
Message 4 of 56 in “My Itchlist”
  1. Junio C HamanoAug 6, 2005
  2. Linus TorvaldsAug 6, 2005
  3. Johannes SchindelinAug 6, 2005
  4. Junio C HamanoAug 6, 2005
  5. Petr BaudisAug 13, 2005
  6. GIT 0.99.4 (preview)Junio C Hamano, Aug 7, 2005
  7. GIT 0.99.4 preview: current statusJunio C Hamano, Aug 8, 2005
  8. Request for help from binary packaging people.Junio C Hamano, Aug 8, 2005
  9. Sergey VlasovAug 8, 2005
  10. Chris WrightAug 8, 2005
  11. Junio C HamanoAug 8, 2005
  12. Chris WrightAug 8, 2005
  13. Junio C HamanoAug 8, 2005
  14. Matthias UrlichsAug 10, 2005
  15. Debian packaging for 0.99.4Matthias Urlichs, Aug 10, 2005
  16. Martin LanghoffAug 10, 2005
  17. Matthias UrlichsAug 10, 2005
  18. Sebastian KuzminskyAug 11, 2005
  19. Martin LanghoffAug 11, 2005
  20. Sebastian KuzminskyAug 11, 2005
  21. Junio C HamanoAug 11, 2005
  22. Linus TorvaldsAug 11, 2005
  23. Johannes SchindelinAug 11, 2005
  24. Sebastian KuzminskyAug 11, 2005
  25. Matthias UrlichsAug 11, 2005
  26. Linus TorvaldsAug 11, 2005
  27. Sebastian KuzminskyAug 11, 2005
  28. Sam RavnborgAug 11, 2005
  29. Sebastian KuzminskyAug 11, 2005
  30. Matthias UrlichsAug 11, 2005
  31. Sebastian KuzminskyAug 11, 2005
  32. Matthias UrlichsAug 11, 2005
  33. Sam RavnborgAug 11, 2005
  34. Alan ChandlerAug 11, 2005
  35. Sebastian KuzminskyAug 11, 2005
  36. Matthias UrlichsAug 12, 2005
  37. David LangAug 12, 2005
  38. Matthias UrlichsAug 12, 2005
  39. Ryan AndersonAug 13, 2005
  40. Matthias UrlichsAug 14, 2005
  41. Ryan AndersonAug 15, 2005
  42. Junio C HamanoAug 14, 2005
  43. Junio C HamanoAug 14, 2005
  44. Linus TorvaldsAug 11, 2005
  45. Linus TorvaldsAug 11, 2005
  46. Sebastian KuzminskyAug 11, 2005
  47. Christian MederAug 11, 2005
  48. Matthias UrlichsAug 11, 2005
  49. Andreas Jellinghaus [c]Aug 12, 2005
  50. Junio C HamanoAug 11, 2005
  51. Gene HeskettAug 11, 2005
  52. Junio C HamanoAug 11, 2005
  53. Junio C HamanoAug 12, 2005
  54. Martin LanghoffAug 12, 2005
  55. Matthias UrlichsAug 13, 2005
  56. more Debian packaging fixesMatthias Urlichs, Aug 13, 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.