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

Re: Rollback of git commands

From
Jeff King <peff@peff.net>
Date
Nov 28, 2007, 16:28 UTC
Message-ID
<20071128162832.GA890@coredump.intra.peff.net>
In-Reply-To
<9e4733910711280823q5fa14120scb6371a1465efca5@mail.gmail.com>
On Wed, Nov 28, 2007 at 11:23:30AM -0500, Jon Smirl wrote:
Show 8 quoted lines
> > Assuming that they also retain the "having an object implies having all
> > of the objects it points to" property, then it makes it hard to talk
> > about subsets or single refs. If I fetch from you and you communicate
> > your repo state as some hash, then I am stuck getting _all_ of your
> > refs to complete this property.
> 
> push/pull would still work at the branch level. The local state
> tracking objects wouldn't be exchanged.
Fair enough.

My spider sense still tingles about this, and I have the feeling that you might run into weird merge problems when two refs are updated simultaneously. I guess that shouldn't happen since you will write out the complete "here are the refs" after every operation, leaving no room for simultaneous updates, but I haven't given it enough thought to be sure there aren't funny corner cases.

-Peff
Previous: Jon SmirlNext: Sean
Message 12 of 31 in “Rollback of git commands”
  1. Jon SmirlNov 27, 2007
  2. Junio C HamanoNov 28, 2007
  3. Jon SmirlNov 28, 2007
  4. Jon SmirlNov 28, 2007
  5. David SymondsNov 28, 2007
  6. Ingo MolnarNov 28, 2007
  7. Sergei OrganovNov 28, 2007
  8. Nicolas PitreNov 28, 2007
  9. Geert BoschNov 28, 2007
  10. Jeff KingNov 28, 2007
  11. Jon SmirlNov 28, 2007
  12. Jeff KingNov 28, 2007
  13. SeanNov 28, 2007
  14. Jon SmirlNov 28, 2007
  15. SeanNov 28, 2007
  16. Jon SmirlNov 28, 2007
  17. Nicolas PitreNov 28, 2007
  18. Jon SmirlNov 28, 2007
  19. Nicolas PitreNov 28, 2007
  20. Jon SmirlNov 28, 2007
  21. Nicolas PitreNov 28, 2007
  22. Jon SmirlNov 28, 2007
  23. Karl HasselströmNov 29, 2007
  24. Junio C HamanoNov 28, 2007
  25. Karl HasselströmNov 28, 2007
  26. Jon SmirlNov 28, 2007
  27. Daniel BarkalowNov 28, 2007
  28. Steven GrimmNov 28, 2007
  29. Daniel BarkalowNov 28, 2007
  30. Jon SmirlNov 28, 2007
  31. Theodore TsoNov 29, 2007

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.